copyright © 2005 Rob van Tulder and Alex van der Zwart
error_reporting(0);
$dirtoread = './';
$mydir = opendir($dirtoread);
$dates = array();
$stack = array ();
while($fn = readdir($mydir))
{
$tmpfile = $fn;
if (!is_dir("$dirtoread/$fn"))
{
array_push ($stack, date ("Y m d", filemtime($tmpfile)). "-$tmpfile");
}
}
closedir($mydir);
sort( $stack );
$last_modified = array_pop($stack);
list($junk, $last_updated) = split ('[-]', $last_modified);
print "last updated: " .date ("d F Y", filemtime($last_updated));
?>