Re: Scan files

From: Date: Fri, 16 May 2003 18:57:04 +0000
Subject: Re: Scan files
Groups: php.general 
Request: Send a blank email to php-general+get-147963@lists.php.net to get a copy of this message
"shaun" <shaun@mania.plus.com> wrote in message news:<20030516184241.62426.qmail@pb1.pair.com>... > Ok I think I'm nearly there > > but the following isn't picking up the files that contain the tags: > > <?php > if ($handle = opendir('.')) { > while (false !== ($file = readdir($handle))) { > if ($file != "." && is_file($file)) { > if(strpos(fopen($file, r), '<!-- isEditable !-->') == true){ > echo $file.'<br>'; > } > } > } > closedir($handle); > } > ?> > > Any ideas? Maybe you should try reading the file...always works for me. www.php.net/fread ---John Holmes...

« previous php.general (#147963) next »