> -----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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php