Thanks for your tutorial above. I found it very useful.
I made a modification so that you don't need to specify a filename:
// $n for a newline
$n = "
";
$path = $_SERVER['PHP_SELF'];
$file = basename($path);
$last_time_modified = filemtime($file);
// use the format you would like the date outputted as, i.e. jS M y
$last_mod = "Last updated: " . date("jS M y - H:i:s T", $last_time_modified) . $n;
print $last_mod;
?>
Use the $_SERVER[''] if Global variables are not enabled on the server.





