Quote:
Originally Posted by sharphead
Well here's a start...
PHP Code:
<?php echo "Last modified: ".date( "F d Y H:i:s.", getlastmod() ); ?>
|
That will only work for the page it's on, for what he wants, this is a better solution...
PHP Code:
<?php
// outputs e.g. somefile.txt was last modified: August 03 2009 01:43:23.
$filename = 'somefile.txt';
if (file_exists($filename)) {
echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));
}
?>