Re: last updated ?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: last updated ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126581@lists.php.net to get a copy of this message
> >Dumb question here but whats the general practice regarding putting a > >"website last updated:" entry on a web page? Does the web master manually > >enter in today's date in a database table entry and let PHP display. Is it > >statically added to the HTML page? Etc... > If you want "website last updated" then from a database sounds OK but > where I'm working its commonly a "page last updated" wanted. In this > case its just a manually entered date in html in the page. Or use stat() to get the page's mtime, something like <? $stat = stat($HTTP_SERVER_VARS['SCRIPT_FILENAME']); $date = strftime("%c", $stat[9]); print "Last update: $date"; ?> Which will be automatically updated... -- Morgan Hughes C programmer and highly caffeinated mammal. kyhm@kyhm.com ICQ: 79293356

« previous php.general (#126581) next »