This script will display the last time you modified or updated a page on your site. The javascript version (found here) did not work correctly on .php pages. But this PHP version will, and you can also change the time format in the PHP version.
<?php
/*****************
--Last Modified
--More PHP Scripts at
--http://icecaves.net/tags/php
*****************/
$time_offset = "-3"; //Offset the last modified time from server time (EST). Default setting is IC time (PST).
$last_edited = getlastmod();
$last_edited_date = date("l, j F Y", $last_edited + ($time_offset * 3600)); //You can change the date format if you wish see http://php.net/date
echo "Page Last Modified: $last_edited_date\n";
?>Code Preview:
Page Last Modified: Thursday, 22 December 2011
Forum Board:
