Re: Scan files
| From: | Comex | Date: | Fri, 16 May 2003 21:59:52 +0000 |
| Subject: | Re: Scan files | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147987@lists.php.net to get a copy of this message | ||
<20030516184241.62426.qmail@pb1.pair.com>
Shaun:
> 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?
Did you change your mind about <!-- isEditable=true --!> and turn it into
just <!-- isEditable !-->?
--
1.41421356237309504880168872420969807856967187537694
Comex
The search is more profitable than the find.
Never, ever back down.
The e-mail given is a spam trap.
..==// Why not? \\==..