Re: [PHP] Re: Function needed
This resricts to *nix and can be disallowed due to security constraints, but thanks anyway. I just wrote my own PHP routine. -- Gaylen PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > $result=`ls -R | grep 'expression' ./`; > > HTH > Chris > > Jason Wong wrote: > > >On Sunday 09 June 2002 17:17, Austin Marshall wrote: > > > >>Gaylen Fraley wrote: > >> > >>>I am in need of a function/script that will take a directory and search > >>>all filenames, recursively down, for a given file. Can anyone point me > >>>to a source? Thanks. > >>> > >>$result=`grep -r 'expression' ./`; > >> > > > >This searches for strings within a file. > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Function needed
$result=`ls -R | grep 'expression' ./`; HTH Chris Jason Wong wrote: >On Sunday 09 June 2002 17:17, Austin Marshall wrote: > >>Gaylen Fraley wrote: >> >>>I am in need of a function/script that will take a directory and search >>>all filenames, recursively down, for a given file. Can anyone point me >>>to a source? Thanks. >>> >>$result=`grep -r 'expression' ./`; >> > >This searches for strings within a file. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Function needed
On Sunday 09 June 2002 17:17, Austin Marshall wrote: > Gaylen Fraley wrote: > > I am in need of a function/script that will take a directory and search > > all filenames, recursively down, for a given file. Can anyone point me > > to a source? Thanks. > > $result=`grep -r 'expression' ./`; This searches for strings within a file. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Earth -- mother of the most beautiful women in the universe. -- Apollo, "Who Mourns for Adonais?" stardate 3468.1 */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Function needed
Gaylen Fraley wrote: > I am in need of a function/script that will take a directory and search all > filenames, recursively down, for a given file. Can anyone point me to a > source? Thanks. > > > $result=`grep -r 'expression' ./`; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php