As shown below:
Copy the codeThe code is as follows:
$dir = dirname (__FILE__);
$open_dir = opendir($dir);
echo "
";
echo "File name | size | type | modification date |
";
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 is as follows: Copy the code as follows: ?php $dir = dirname(__FILE__); $open_dir = opendir( $dir); echo "table border=1 borderColor=red cellpadding=6"; echo "trth file name/thth size...