$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 "
";
?>