note 46418 added to function.gmstrftime
| From: | yellow dot snow at huskies dot com | Date: | Sun, 10 Oct 2004 16:15:34 +0000 |
| Subject: | note 46418 added to function.gmstrftime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78305@lists.php.net to get a copy of this message | ||
HTTP 1.1 (RFC 2068) requires an RFC 1123 date with a four digit year, so the correct format to use
for a Last-modified header would look something like this:
<?php
header("Last-modified: " .
gmstrftime("%a, %d %b %Y %T %Z",getlastmod()));
?>
----
Manual Page -- http://www.php.net/manual/en/function.gmstrftime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46418
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46418&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46418&report=yes
Search -- http://master.php.net/manage/user-notes.php