FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

Date file last modified




Description

Outputs the date and time that a file was last modified. Can be formatted however you wish.


The code


Code:
<?php



// Change to the name of the file

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



// Display the results

// eg. Last modified Monday, 27th October, 2003 @ 02:59pm

print "Last modified " . date("l, dS F, Y @ h:ia", $last_modified);



?>

Smile



0 blog comments below




FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.