PDA

View Full Version : Auto Update Counter




JackT06
Jan 23, 2010, 04:48 PM
Im not quite sure how to explain this but i will give it a shot.

On websites at the bottom you sometimes find the date which it was last updated. Is that an auto feature or do you have to maunaully do that everytime?

I would like to add it to the bottom of my new site.

Many Thankks :)



angelwatt
Jan 23, 2010, 05:36 PM
I use PHP myself, but there's other ways. Here's the PHP I use,
echo "Last updated: ". date("Y-m-d \a\\t h:i T", getlastmod());
I have that in my footer, which gets included on all pages. The getlastmod function being the key part.