On Sat, Apr 12, 2008 at 3:13 PM, Al <[EMAIL PROTECTED]> wrote:
> I need a simple utility that simulates GREP to find a certain string in any
> php files on my website.
>
> Site is on a shared host w/o shell access so I can't run GREP.
>
> I can write a PHP scrip to do it; but, this is a one time thing and I was
> hoping to find something to save me the effort.
Al,
For yourself and others searching for the same type of thing in
the future, I threw this script together. There's always room for
improvement, but it's a fully-functional trunk with which to start.
All native PHP functions, no external exec() access required. Full
source linked from the bottom of the page.
http://pilotpig.net/code-library/recursive-grep.php
--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php