Log in

View Full Version : Last Updated on...script



SSMS
11-04-2010, 08:01 PM
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

bluewalrus
11-04-2010, 08:10 PM
Do you have php available?

If so I think http://php.net/manual/en/function.filectime.php should do it.

Beverleyh
11-04-2010, 08:39 PM
This line in your php web page should do it (if your web page ends .php);


<?php echo "Last updated: " . date( "F jS\, Y",getlastmod());?>