Lista de ejemplos
$curpath");
echo "";
while ($file = $dir->read()) {
if($file != "." && $file != "..") {
if (is_dir($curpath.$file)) {
ls($curpath.$file."/");
} else {
echo(" $file
");
}
}
}
$dir->close();
echo "
";
return;
}
//Use:
$startpath = ".";
ls($startpath);
?>