Re: Question: Processing files in directory and parsing...
| From: | zerosumzero@yahoo.com | Date: | Sun, 08 Jul 2001 01:19:36 +0000 |
| Subject: | Re: Question: Processing files in directory and parsing... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56702@lists.php.net to get a copy of this message | ||
on 7/7/01 9:02 PM, Jeff Lewis at jeff@hyrum.net wrote:
> I have a directory with 163 files. I'd like to go through and process all
> files with the word "rost" in them.
Are these files named in any logical way? ie. 01.htm
02.htm etc.
Do you have a list of the files someplace? I'm not certain how to get a
list of the files in a directory, but I know it's possible in perl, so out
of curiosity I'll see what's there.
The rest seems pretty easy using
$fp = fopen ("/wwbl/HTML/watrost.htm", "rw");
$rost = strstr ($fp, 'rost');
if ($rost) { echo "There it is!"; }
Susan