I'm working on updating a page for a club that I'm involved in at school. It's on an apache server and I am editing the .htm file through linux.
Does anyone know a script that I could include in the html file that would display the Time and Date that the .htm file was last updated?
Thanks!
I tried the following two things that I found online but neither seemed to work.
(JavaScript)
<SCRIPT LANGUAGE="JavaS cript">
<!-- hide script begin var m = "Page updated" + document.lastMo dified; var p = .length-8;
document.writel n("<center>") ;
document.write( m.substring(p, 0));
document.writel n("</center>");
// End --> </SCRIPT>
(PHP)
<?
$last_modified = filemtime("exam ple7.php3");
print("Last Modified ");
print(date("m/j/y h:i", $last_modified) );
?>
Does anyone know a script that I could include in the html file that would display the Time and Date that the .htm file was last updated?
Thanks!
I tried the following two things that I found online but neither seemed to work.
(JavaScript)
<SCRIPT LANGUAGE="JavaS cript">
<!-- hide script begin var m = "Page updated" + document.lastMo dified; var p = .length-8;
document.writel n("<center>") ;
document.write( m.substring(p, 0));
document.writel n("</center>");
// End --> </SCRIPT>
(PHP)
<?
$last_modified = filemtime("exam ple7.php3");
print("Last Modified ");
print(date("m/j/y h:i", $last_modified) );
?>
Comment