note 12677 deleted from function.opendir by jimw

From: Date: Sat, 08 Dec 2001 23:43:41 +0000
Subject: note 12677 deleted from function.opendir by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22366@lists.php.net to get a copy of this message
Watch out for any filenames, such as '0', which evaluate to false. In my case, I had a directory full of files, but the '0' file caused the while($file = readdir($dir)) loop to fail. Either find another way to name the file, or find a way to check for this special case.

« previous php.notes (#22366) next »