![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: Getting the filenames from a folder
From: juglesh <jugleshjunk@hotmail.com>
Date: Mon Oct 31 2005 - 03:57:10 CET
Chung Leong wrote:
nice, i never saw that. I assume you could go *.*, can you give it
here is a func which can give an array of either folders or files:
$aListOfFiles = GetDirList($someDirectory, 'files');
function GetDirList($parent, $filesorfolders){
if ($handle = opendir($parent)) {
if ($filesorfolders == "folders"){
}// while reading
|