1024; $c++) { $size/=1024; } $size=round($size,1); return("$size ".$size_label[$c]); } $trbg = "1"; // which - background echo " "; // reading the content and... $mydir = dir("./"); while ($file=$mydir->read()){ $kind = filetype($file); if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query if ($file != '.' && $file != '..' && $file != 'index.php' && $file != '.htaccess'){ //... showing the content: // - backgroundcolor echo ""; if ($trbg=="1"){ echo ""; $trbg = "2"; } else if ($trbg=="2"){ echo ""; $trbg = "1"; } //"; //...filesize... if(is_dir($file)){ echo ""; }else{ echo ""; } //... last change... $change = filemtime($file); echo ""; } } } $mydir->close(); ?>
file
size
last modified
DIR
and filename... echo "
DIR
".size($file)."
".date("H:i:s - j M, Y",$change)."