DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Page Last Modified

04.17.2006
| 4402 views |
  • submit to reddit
        // PHP snippet to output the date a file was last updated

<?
$last_modified = filemtime("pagename.php");
print("Last Modified");
print(date("j/m/y h:i", $last_modified));
?>