Hi,
I tried a google search to solve this and found nothing. I tried searching this site and it didn't like my key words so I guess I am stuck on this one.
I tried a Windows 7 search to look for text strings within my php scripts but it does not search .php scripts. Is there a low cost or free utility to search for text strings within .php scripts. Preferably something that can list the whole line where the string is located and the script it came from. It would be best if it could search for "_SESSION*MyString" using wild card characters (even better if it could use regular expressions like unix Sed/Awk can). Again this is Win 7. I am using XAMPP.
Thanks,
John
Searching PHP scripts for text strings
Moderator: General Moderators
Re: Searching PHP scripts for text strings
Pretty sure you can use grep et al via Cygwin. Most editors/IDEs should handle what you're asking out of the box, though.
-
phpdeveloper1
- Forum Newbie
- Posts: 19
- Joined: Tue Aug 12, 2014 6:13 am
- Location: Chennai, India
Re: Searching PHP scripts for text strings
Since you mention windows, I think notepad++ will suit your need pretty well.bowlesj wrote:Hi,
I tried a google search to solve this and found nothing. I tried searching this site and it didn't like my key words so I guess I am stuck on this one.
I tried a Windows 7 search to look for text strings within my php scripts but it does not search .php scripts. Is there a low cost or free utility to search for text strings within .php scripts. Preferably something that can list the whole line where the string is located and the script it came from. It would be best if it could search for "_SESSION*MyString" using wild card characters (even better if it could use regular expressions like unix Sed/Awk can). Again this is Win 7. I am using XAMPP.
Thanks,
John
Last edited by phpdeveloper1 on Sun Sep 14, 2014 8:04 pm, edited 1 time in total.
Chris, Php Developer and Programmer,
https://www.phpfreelanceprogrammer.com/
https://www.phpfreelanceprogrammer.com/
Re: Searching PHP scripts for text strings
Thanks guys, sorry about the long time to reply. I was kind of forced into a bit of a forum holiday - LOL.
Gee, it was in notepad++ which I am using. It was under "find in files". I noticed it even does replace. That's so cool. Editors have come a long ways. They use to only search the current document.
John
Gee, it was in notepad++ which I am using. It was under "find in files". I noticed it even does replace. That's so cool. Editors have come a long ways. They use to only search the current document.
John