note 34207 added to function.scandir

From: Date: Fri, 18 Jul 2003 08:48:23 +0000
Subject: note 34207 added to function.scandir
Groups: php.notes 
Request: Send a blank email to php-notes+get-52330@lists.php.net to get a copy of this message
For users who doens't have the PHP5 support yet, this function works fine: function scandir($dirstr) { // php.net/scandir (PHP5) $files = array(); $fh = opendir($dirstr); while (false !== ($filename = readdir($fh))) { array_push($files, $filename); } closedir($fh); return $files; } ---- Manual Page -- http://www.php.net/manual/en/function.scandir.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34207 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34207&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34207&report=yes

« previous php.notes (#52330) next »