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
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
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.
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
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
Bookmarks