note 59746 deleted from class.dir by bjori

From: Date: Fri, 14 Apr 2006 22:11:41 +0000
Subject: note 59746 deleted from class.dir by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108113@lists.php.net to get a copy of this message
Note Submitter: Michal Kubenka ---- Thx but one fix function read_dir($dir) { $array = array(); $d = dir($dir); while (false !== ($entry = $d->read())) { if($entry!='.' && $entry!='..') { $entry = $dir."/".$entry; //we need / on some servers if(is_dir($entry)) { $array = array_merge($array, read_dir($entry.'/')); } else { $array[] = $entry; } } } $d->close(); return $array; }

« previous php.notes (#108113) next »