>>981 少しやってみた、新しい順 ? 最後のファイル ?
<?php
$path = "./work";
$dir = @opendir($path)
or die("Cannot open directory $path");
while ($file = readdir($dir)) {
if (!ereg("(\.|\.\.)" , $file)) {
$files[$file] = filemtime($path . "/" . $file);
}
}
closedir($dir);
arsort($files);
foreach($files as $key => $value) {
echo $key . "<br>\n";
}
?>