getting a complete file list?
Moderator: General Moderators
getting a complete file list?
Is there any way of generating a text list of all files within a folder and sub folders?
sure there is.
here is a function i wrote.
here is a function i wrote.
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; }
}