note 75337 added to function.apache-response-headers

From: Date: Thu, 24 May 2007 16:46:25 +0000
Subject: note 75337 added to function.apache-response-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-126870@lists.php.net to get a copy of this message
I can confirm athlet's experience with apache_response_headers() using PHP 5.1.6. When the resulting array is empty or only contains "X-Powered-By" instead of the full list of values, you'll need to switch off output_buffering _before_ the script has been executed, for example with the following directive in .htaccess: php_value "output_buffering" "0" it _doesn't_ work when you do a you ini_set('output_buffering', 0); in your script. Not sure why that is so - it is not a bug in PHP, but probably has to do with how Apache populates the request values. ---- Server IP: 194.153.94.10 Probable Submitter: 83.219.96.149 ---- Manual Page -- http://www.php.net/manual/en/function.apache-response-headers.php Edit -- https://master.php.net/note/edit/75337 Del: integrated -- https://master.php.net/note/delete/75337/integrated Del: useless -- https://master.php.net/note/delete/75337/useless Del: bad code -- https://master.php.net/note/delete/75337/bad+code Del: spam -- https://master.php.net/note/delete/75337/spam Del: non-english -- https://master.php.net/note/delete/75337/non-english Del: in docs -- https://master.php.net/note/delete/75337/in+docs Del: other reasons-- https://master.php.net/note/delete/75337 Reject -- https://master.php.net/note/reject/75337 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126870) next »