note 37660 added to ref.filesystem

From: Date: Sat, 22 Nov 2003 01:46:27 +0000
Subject: note 37660 added to ref.filesystem
Groups: php.notes 
Request: Send a blank email to php-notes+get-60791@lists.php.net to get a copy of this message
Jazeps Basko, the false/true checking was taken from the PHP readdir page: http://us3.php.net/manual/en/function.readdir.php Here's the part: <?php /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo "$file\n"; } /* This is the WRONG way to loop over the directory. */ while ($file = readdir($handle)) { echo "$file\n"; } ?> ---- Manual Page -- http://www.php.net/manual/en/ref.filesystem.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37660 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37660&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37660&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60791) next »