> >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.
   [EMAIL PROTECTED]
   ICQ: 79293356



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to