如下所示:
复制代码 代码如下:
$dir = dirname(__FILE__);
$open_dir = opendir($dir);
echo "
";
echo "
文件名 |
大小 |
类型 |
修改日期 |
";
while ($file = readdir($open_dir)) {
if ($file!= "." && $file != "..") {
echo "
" . $file . " | ";
echo "" . filesize($file) . " | ";
echo "" . filetype($file) . " | ";
echo "" . filemtime($file) . " |
";
}
}
echo "
";
?>
http://www.bkjia.com/PHPjc/327497.htmlwww.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大小...