NYCPHP Meetup

NYPHP.org

[nycphp-talk] Finding instances of include file

David Krings ramons at gmx.net
Thu Jul 26 13:53:44 EDT 2007


Aaron Fischer wrote:
> I have an include file that I do not want to use anymore.  I want to go 
> through all the files on my site and find every instance of the code 
> that calls that include file.
> 
> Any suggestions on how to do that?
> 
> Thanks,
> 
> -Aaron

Any multi-file find and replace tool will do the trick. You simply 
replace the include line with nothing. I know of a few tools, but it 
depends on which OS you are using. Also, some IDEs have such an option.

Or...youc write a quick and dirty PHP script that does that for you. ;)

David



More information about the talk mailing list