note 44011 added to function.header

From: Date: Mon, 12 Jul 2004 15:08:57 +0000
Subject: note 44011 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-73099@lists.php.net to get a copy of this message
I've noticed many suggestions to re-order the headers in a script, especially the 'Content-Type: application/octetstream' and 'Content-Type: application/octet-stream' headers. Note that without adding the "false" option to the header() call, you are simply overwriting all previous headers with the last one called. For example: header("Cache-Control: must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0, max-age=0"); will return only Cache-Control: post-check=0, pre-check=0, max-age=0 Steve ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44011 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44011&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44011&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73099) next »