Results 1 to 3 of 3

Thread: Last Updated on...script

  1. #1
    Join Date
    Nov 2010
    Location
    Chesterfield
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Last Updated on...script

    I want to put a 'Last Updated on' script on my index page so Members can see when changes were last made. The date should automaqtically update itself each time I do any updates via the server.
    Does anyone have a script code?
    Thanks
    Graham

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Do you have php available?

    If so I think http://php.net/manual/en/function.filectime.php should do it.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    2,027
    Thanks
    16
    Thanked 315 Times in 313 Posts
    Blog Entries
    13

    Default

    This line in your php web page should do it (if your web page ends .php);

    PHP Code:
    <?php echo "Last updated: " date"F jS\, Y",getlastmod());?>
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

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
  •