note 33687 added to ref.dir

From: Date: Fri, 04 Jul 2003 00:51:57 +0000
Subject: note 33687 added to ref.dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-51486@lists.php.net to get a copy of this message
in the submission by 'david DOT leggett AT ntlworld DOT com' the line: while ($file = readdir ($d)) { should be changed to: while (false !== ($file = readdir($d))) { to avoid undesirable actions. ---- Manual Page -- http://www.php.net/manual/en/ref.dir.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33687 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33687&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33687&report=yes

« previous php.notes (#51486) next »