on 7/7/01 9:02 PM, Jeff Lewis at [EMAIL PROTECTED] 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]