Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grep Alternative

Status
Not open for further replies.

Geronantimo

Technical User
Apr 3, 2006
79
SE
Hopefully, somebody here can point me in the right direction...

I often use PowerGrep to search within files for a particular string. Usually, this is within .php and .css files. Sometimes, this means that I have to download (FTP) the entire site before I can use PowerGrep.

Does anybody know of a php script that can do the same thing on the server through a browser?

Perhaps a system that can index all of the pages and then store the information in a MySQL database.

Any ideas appreciated.

Regards,
 
you could do a grep through a backtick operator.
 
or native php you could iterate each dir and then each file, grab the contents of the file and check it for a string.

bit unnecessary though, when the os can do it with grep.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top