所属分类:PHP实例-函数/算法
function listDirFiles($DirPath)
{
if($dir = opendir($DirPath))
{
while(($file = readdir($dir))!== false)
{
if(!is_dir($DirPath.$file))
{
echo "filename: $file
";
}
}
}
}
listDirFiles('./');