note 44011 deleted from function.header by danbrown

From: Date: Sun, 07 Dec 2008 18:34:22 +0000
Subject: note 44011 deleted from function.header by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147838@lists.php.net to get a copy of this message
Note Submitter: smgallo at buffalo dot edu ---- 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

« previous php.notes (#147838) next »