note 825 modified in readdir by ronabop

From: Date: Wed, 11 Oct 2000 04:01:28 +0000
Subject: note 825 modified in readdir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6349@lists.php.net to get a copy of this message
To expand on the above user's comment, all file names after the "0" file will not be displayed, depending on the position of the "0" filename in the internal directory structure. Try the sample code in a test directory in which you created bogus files "foo", "bar", "0" and "baz" IN THAT ORDER. Workaround:< while (($file = readdir($handle)) != "") { Scripting is such fun, who needs strict typing ? :-) http://www.php.net/manual/function.readdir.php

« previous php.notes (#6349) next »