Results 1 to 4 of 4

Thread: show when a page was last updated

  1. #1
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default show when a page was last updated

    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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    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.).
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Mar 2008
    Posts
    122
    Thanks
    17
    Thanked 5 Times in 5 Posts

    Default

    Quote Originally Posted by clarkej View Post
    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 Code:
    <?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

  4. #4
    Join Date
    Apr 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks guys!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •