Log in

View Full Version : show when a page was last updated



clarkej
04-20-2010, 09:17 AM
hey i was woundering if it was possible / if there is any form of codeing which would show when a page was last updated (with out it having to be manually changed (its kind of an audit / security requirment))

thanks in advance

djr33
04-20-2010, 05:21 PM
You could use a serverside language (like PHP) to find the last modified date from the file, if that's what you want. Otherwise you need to have a content management system ('CMS') of some sort that tracks when you edit content and stores it in a database (etc.).

hmsnacker123
04-21-2010, 03:20 AM
hey i was woundering if it was possible / if there is any form of codeing which would show when a page was last updated (with out it having to be manually changed (its kind of an audit / security requirment))

thanks in advance

Heres a lil' script in PHP that displays the last modification time:



<?php


echo date("h:i:s", getlastmod());

?>


More info:
http://www.php.net/
http://uk3.php.net/getlastmod
http://uk.php.net/manual/en/function.date.php

clarkej
04-21-2010, 09:54 AM
thanks guys!