当前位置:Gxlcms > PHP教程 > php简单浏览目录内容的实现代码_PHP教程

php简单浏览目录内容的实现代码_PHP教程

时间:2021-07-01 10:21:17 帮助过:3人阅读

如下所示:
代码如下:
$dir = dirname(__FILE__);
$open_dir = opendir($dir);
echo "";
echo "";
while ($file = readdir($open_dir)) {
if ($file!= "." && $file != "..") {
echo "";
echo "";
echo "";
echo "";
}

}
echo "

文件名大小类型修改日期
" . $file . "" . filesize($file) . "" . filetype($file) . "" . filemtime($file) . "
";
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/327497.htmlTechArticle如下所示: 代码如下:

?php $dir = dirname(__FILE__); $open_dir = opendir($dir); echo "table border=1 borderColor=red cellpadding=6"; echo "trth文件名/thth大小...

人气教程排行