What has been updated? source code

Home
Movies
Images
Java
PHP
Micro controllers
Fractals
Vector graphics
Projects
Links
Blog
Meta
Lists pages in array $files in modification time order. A version of this program is used in the Site updates page.
$files = array(
  'index.php'
, 'poll.php'
, 'ppmg.php'
, 'whoami.php'
, 'ppmg.source.php'
, 'updated.php');

$filedate = array();

for ($i = 0; $i < sizeof($files); $i++) {
  $filedate[$files[$i]] = filemtime($files[$i]);
}

echo "<ul>\n";
arsort($filedate);
foreach ($filedate as $key => $val) {
  echo "<li><a href=\"$key\">$key</a> modified ";
  echo date('Y-m-d', $val).'</li>';
}
echo "</ul>\n";