时间:2021-07-01 10:21:17 帮助过:48人阅读
function list_files($dir)
{
if(is_dir($dir))
{
if($handle = opendir($dir))
{
while(($file = readdir($handle)) !== false)
{
if($file != "." && $file != ".." && $file != "Thumbs.db"/*pesky windows, images..*/)
{
echo ''.$file.'
'."\n";
}
}
closedir($handle);
}
}
}