PHP — ‘Page last mod­i­fied’ on script

July 20th, 2009 by Ryan Huff Leave a reply »
<html>

<head>

<title>Page last updated on month/date/year hour:min PHP Script</title>

</head>

<?php

$last_modified = filemtime("myexamplepage.php");

print("Last Modified ");

print(date("m/j/y h:i", $last_modified));

?>

</body>

</html>
Advertisement

Comments are closed.