search through your php file content on the server?
Does anyone know of any FTP or other software that will search for a string within your php files that are on the server (in the raw code)?
For example I want to search for "<div id='thetitle'>" and/or "<?php $var1 = 3;" within a directory of PHP files on the server.
If the server is *nix and you have SSH access you can use grep to find all occurences of a string in all files in a folder, a specific file or recursively for everything in a folder at any level below.
http://download.cnet.com/Grep/3000-2094_4-94069.html is the right one? At the risk of not sounding techie, how do I know if I have SSH or not?
Another option (i.e. if you don't have ssh or other access to the web server's command line interface), would be to write a little PHP script. At the simplest:
passthru('grep "<div id=\'thetitle\'>" *.php');
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
that does sound more fun.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread