Auto Update Counter

Discussion in 'Web Design and Development' started by JackT06, Jan 23, 2010.

  1. macrumors 6502

    JackT06

    Joined:
    Jul 24, 2009
    #1
    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 :)
     
  2. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    I use PHP myself, but there's other ways. Here's the PHP I use,
    PHP:
    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.
     

Share This Page