RE: [PHP] Wildcard search
| From: | Mark Charette | Date: | Fri, 08 Nov 2002 14:54:17 +0000 |
| Subject: | RE: [PHP] Wildcard search | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123387@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Mako Shark [mailto:phpman2000@yahoo.com]
> do I have to do a
> readdir() and read the filename of every file until I find an
> HTML or until all files have been read.
This is what the shell expression supplied by Marco Tabini actually does;
doing it in PHP (readdir(), etc.) eliminates the exec of the shell process
and is faster (readdir() is a thin veneer on the readdir system call) and
the problem of portability if you want to use this on both Unix and Windows.