note 39231 deleted from ref.dir by sniper

From: Date: Fri, 16 Dec 2005 00:00:35 +0000
Subject: note 39231 deleted from ref.dir by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100259@lists.php.net to get a copy of this message
Note Submitter: bosse at mellberg dot org ---- I couldnt get the function by sc1n at yahoo dot com to work, so I modded it minorly to this: function Fetch_File_Tree($start_directory) { if( $dir = @opendir($start_directory) ) { $tree = array(); while( FALSE !== ($file = readdir($dir)) ) { if($file != "." && $file != "..") { $absolute_file = $start_directory . $file; if (is_file($absolute_file)) $tree[] = $file; else if (is_dir($absolute_file)) Fetch_File_Tree($absolute_file."/"); } } } else { return FALSE; } return $tree; } The @-sign is just for suppressing warnings. Good luck!

« previous php.notes (#100259) next »