note 78903 deleted from reserved.variables by cmb

From: Date: Tue, 05 Nov 2019 11:34:58 +0000
Subject: note 78903 deleted from reserved.variables by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212916@lists.php.net to get a copy of this message
Note Submitter: root at mantoru dot de ---- Note that some headers will be checked for validity (by Apache, I suppose) before showing up in $_SERVER -- If-Modified-Since for example. <?php $lastmod = gmdate('D, d M Y H:i:s', filemtime('somefile')); header("Last-Modified: $lastmod"); ?> This WON'T work, "GMT" is missing. Internet Explorer auto-fixes this by adding GMT, while Firefox resends this data as-is. (So an If-Modified-Since-header is sent, but neither shows up in $_SERVER nor in apache_request_headers()). This would be correct: <?php $lastmod = gmdate('D, d M Y H:i:s', filemtime('somefile')) . 'GMT'; header("Last-Modified: $lastmod"); ?>

« previous php.notes (#212916) next »