[nycphp-talk] Finding instances of include file
Mark Armendariz
lists at enobrev.com
Thu Jul 26 14:08:53 EDT 2007
Jon Baer wrote:
> Just fgrep for the filename ...
>
> fgrep -Rn "file.php" /path/to/docroot
>
> - Jon
Jon's would return more references (including comment references and such)
Could also do this - specific to php includes
find -name '*.php' | xargs grep -E "(include|require)(_once)? 'file.php'"
Mark
More information about the talk
mailing list
Automatic Email Organization without missing anything!