Text searching all scripts

From: Malaclypse (autodementia_at_yahoo.com)
Date: 04/29/04


Date: 29 Apr 2004 13:49:35 -0700

I have a question that doesn't have to do with coding PHP so much as
working with .php files on my own machine.

For .html files, I really like being able to use Windows Explorer's
native "search files" feature to look for specific words within a
file. If I want to find all HTML pages that, say, reference a certain
JavaScript function or have a certain CSS file include, I just do a
search in the relevant folder and pop that info into the "A word or
phrase in the file" field and bingo, any .html file with that function
call or file include pops right up.

I'd really like to do the same thing with .php files (and .asp and
other types of scripts) but Explorer's search function simply won't
look at these files with more "obscure" suffixes like it will with
.html, .txt and other such files.

Is there any way I can change the parameters of Explorer's search
function to include .php files etc. in the list of types of files it
will analyze in this way for searches? (I'm using XP Pro, BTW)

Or, if that isn't possible, is there some sort of script or program
out there that will search for text strings in all .php and other
script files within a folder?

TIA,
 -Chris



Relevant Pages

  • Re: how can i use php in .htm file
    ... PHP files have a different extension ... if you have HTML files that currently use SSL (Server ...
    (comp.lang.php)
  • Re: php in ".html" documents
    ... I don't think it particularly wise to have all .html files always treated and processed as .php files. ... I'm not tense, just terribly, terribly alert. ...
    (comp.lang.php)
  • Re: funny problem
    ... I have about 8-9 .php files which are far from complex. ... Then I tried a simple one-page script using post - works fine. ... simultaneous users of your web application and your script reads from the same single file, and maybe writes to the same single file(keep aside the case of poor design, I am talking of say a page hit counter, or reading initial settings from the single file), will not several copies of your code in memory reading the same file on disk cause problems? ...
    (comp.lang.php)
  • Re: OT: security
    ... Your blacklist approach by disallowing .php files to be uploaded doesn't ... Dependent on the server configuration there are some more ways to ... able to upload and execute my own script, ... Your main problem is that you allow the upload of any arbitrary files ...
    (comp.lang.php)
  • Re: Script, bash: Help with very simple ftp script
    ... >> script to upload my html files? ... >> My script: ... > send "mput $file1\r" ... Theo, thanks for the feedback. ...
    (alt.os.linux.suse)