getting a complete file list?
Posted: Fri Aug 29, 2003 5:01 am
Is there any way of generating a text list of all files within a folder and sub folders?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
function readFiles($map){
if ($handle =@ opendir($map)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$filesї]=$map.'/'.$file;
}
}
closedir($handle);
}
if (!empty($files)){return $files; }
}