How to search text inside php file?i cant search inside php file using windows search

Discussion in 'PHP' started by basketmen, May 25, 2008.

  1. #1
    i have folders that contains few scripts


    i want to search a text in one of php file in those folders

    but i dont know what is the file, so can i search for it using some programs or what??
     
    basketmen, May 25, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    use curl to search content in a php file

    Regards

    Alex
     
    kmap, May 25, 2008 IP
  3. poor-jerk.net

    poor-jerk.net Peon

    Messages:
    71
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you mean folders on your local machine you can use Windows Grep http://www.wingrep.com to search files or even whole folders for any text string. Works with html php js files and many more.
     
    poor-jerk.net, May 25, 2008 IP
    mrsray likes this.
  4. sylsft

    sylsft Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try Googling the SciTE editor. It's a nice lightweight editor with syntax highlighting and a good interactive "Find in files" feature.
     
    sylsft, May 27, 2008 IP
  5. nastynappy

    nastynappy Banned

    Messages:
    499
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use curl to open file , and then eregi to find what u need in those files :)
     
    nastynappy, May 27, 2008 IP
  6. pamir

    pamir Greenhorn

    Messages:
    15
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #6
    Hi kmap, do you mean searching with pure PHP or with an external program? If second is the case you may use http://seekfast.org, which is very convenient for PHP projects.
     
    pamir, Oct 28, 2014 IP
  7. member8200

    member8200 Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #7
    Ok, So you're trying to look for a script that was written on a php file inside a folder.
    You said it's only a few, so why not take a few minutes opening those 'few scripts' in a text editor and use ctrl+f (i'll assume you're on windows) to search for the text you're looking for. I don't think that will take you an hour to accomplish. :)
     
    member8200, Nov 7, 2014 IP
  8. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #8
    Here's a step-by-step instruction using Sublime Text:
    1. Download Sublime
    2. Open all the files you want to search in Sublime
    3. Press Ctrl+Shift+f
    4. Enter phrase
    5. Profit
     
    PoPSiCLe, Nov 7, 2014 IP