On Wednesday 06 March 2002 05:35, Ryan wrote: > Hi, I'm trying to figure out how to have a time stamp at the bottom of > every page that shows when the page was last updated in the format > below. Thanks. > > Last updated: Tue Mar 5 15:48:50 2002 CST
echo "Page last updated:</br>\n"; if ($PATH_TRANSLATED) { $filetime = filemtime($PATH_TRANSLATED); echo date("D Y/m/d", $filetime) . "</br>\n"; echo date("h:i:s a", $filetime) . "</br>\n"; } else { echo "Mon 2001/01/01</br>\n"; echo "12:00:00 am</br>\n"; } Season and salt to taste. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Moe: What did you give your wife for Valentine's Day? Joe: The usual gift -- she ate my heart out. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php