note 39089 deleted from ref.dir by sniper

From: Date: Fri, 16 Dec 2005 00:00:24 +0000
Subject: note 39089 deleted from ref.dir by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100257@lists.php.net to get a copy of this message
Note Submitter: Ian Redden ---- Heres mine modified from the original example: function listdir($dir) { function ls_recursive($dir) { if (is_dir($dir)) { $dirhandle=opendir($dir); while(($file = readdir($dirhandle)) !== false) { if (($file!=".")&&($file!="..")) { $currentfile=$dir."/".$file; if (!$i) $i = 0; $dir_array[$i] = $currentfile; $i++; if(is_dir($currentfile)) { ls_recursive($currentfile); } } } } return $dir_array; } $dir_array = ls_recursive($dir); return $dir_array; }

« previous php.notes (#100257) next »