Re: excluding files
| From: | Henrik Hansen | Date: | Thu, 28 Feb 2002 15:30:45 +0000 |
| Subject: | Re: excluding files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86610@lists.php.net to get a copy of this message | ||
westerman@chanuteks.com (Craig Westerman) wrote:
> while ($file_name = readdir($dir))
>
> if (($file_name != ".") && ($file_name != ".."))
>
> $file_list .= "$file_name";
> }
>
>
> This excludes . and .. files. How would I exclude files that contained
> pv.
>
> Thus filenamepv.html would be excluded, but filename.html would not?
look at the strstr() function, that can check if pv is there and not
like pcomethingv, then you prolly need a regexp for that.
--
Henrik Hansen