function FileInfo($file) {
if(is_dir($file)) {
$type = "
";
}
if(is_file($file)) {
$type = "<--->";
}
if(is_link($file)) {
$type = "";
}
return(htmlentities($type));
}
$files = array();
$handle = opendir(".");
while(false !== ($file = readdir($handle))) {
if($file != "." && $file != "index.php") {
array_push($files, $file);
}
}
sort($files);
?>
Index: print dirname($PHP_SELF); ?>
|
Name |
Last Modified |
Size |
Description |
|
$handle = opendir(".");
foreach($files as $file) {
$stat = stat($file);
?>
print FileInfo($file) ?> |
print $file ?> |
print strftime("%d.%m.%Y %H:%M:%S", $stat[9]) ?> |
print $stat[7] ?> |
|
}
?>