
$dir = “./”;
// Open a known directory, and proceed to read its contents
if (is_dir($dir))
{
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo “filename: $file : filetype: ” . filetype($dir . $file) . “n”.””;
}
closedir($dh);
}
}
?
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...