note 9480 added to readdir

From: Date: Mon, 06 Nov 2000 06:33:25 +0000
Subject: note 9480 added to readdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-7430@lists.php.net to get a copy of this message
Re: while (($file = readdir($handle))!==false) { The above modification !== -> != was required when I tried to do a file listing on an empty directory... it looped forever until I took the extra = sign out. http://www.php.net/manual/function.readdir.php

« previous php.notes (#7430) next »