note 100205 rejected from function.header by danbrown
| From: | danbrown@php.net | Date: | Fri, 01 Oct 2010 02:37:37 +0000 |
| Subject: | note 100205 rejected from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172860@lists.php.net to get a copy of this message | ||
Note Submitter: jeff at yopmail dot ca
----
Hey. Very strange, been working on some PHP code and I'm not getting anything coming up...
<?php
$last_modified_time = filemtime($file);
$etag = md5_file($file);
header("Last-Modified: ".gmdate("D, d M Y H:i:s", $last_modified_time)."
GMT");
header("Etag: $etag");
if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time ||
trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {
header("HTTP/1.1 304 Not Modified");
exit;
}
?>
Ah well, guess I'll head back to figuring it out.
Jeff
http://nonchexsystemsbanks.org