On Sat, 2002-05-11 at 15:52, olinux wrote:
> $dirPath = "C:\somepath";
> $dhandle = opendir($dirPath);
> 
> while ($filename = readdir($dhandle)) {
 
This will bail on the first directory entry which has a name which
evaluates to false. Try it after 'touch 0' in the directory you're
scanning....the examples in the manual show how to do it safely.

 
> echo $filename . "<br>";
> 
> }// end read filenames

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to