note 29966 deleted from ref.dir by sniper

From: Date: Thu, 15 Dec 2005 23:59:48 +0000
Subject: note 29966 deleted from ref.dir by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100250@lists.php.net to get a copy of this message
Note Submitter: johnpipi at hotmail dot com ---- Here is a function that returns an array of all files (filenames) from inputted directory. function getDirFiles($dirPath) { if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) if ($file != "." && $file != "..") $filesArr[] = trim($file); closedir($handle); } return $filesArr; }

« previous php.notes (#100250) next »