Re: Need a simple one time search utility
| From: | Daniel Brown | Date: | Mon, 14 Apr 2008 17:15:09 +0000 |
| Subject: | Re: Need a simple one time search utility | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272978@lists.php.net to get a copy of this message | ||
On Sat, Apr 12, 2008 at 3:13 PM, Al <news@ridersite.org> 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!