note 94311 added to function.header

From: Date: Wed, 28 Oct 2009 16:25:16 +0000
Subject: note 94311 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-162194@lists.php.net to get a copy of this message
Yet another revision... it looks like the following code does *not* change the status code at all with PHP running as an Apache module: <?php header('Status: 403'); ?> Yet, under FastCGI, it sends the 403 response code, as desired. It looks like the most compatible way is to use: <?php header(' ', true, 403); ?> That works on both FastCGI and mod_php. ---- Server IP: 64.71.164.2 Probable Submitter: 129.21.225.247 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/94311 Del: integrated -- https://master.php.net/note/delete/94311/integrated Del: useless -- https://master.php.net/note/delete/94311/useless Del: bad code -- https://master.php.net/note/delete/94311/bad+code Del: spam -- https://master.php.net/note/delete/94311/spam Del: non-english -- https://master.php.net/note/delete/94311/non-english Del: in docs -- https://master.php.net/note/delete/94311/in+docs Del: other reasons-- https://master.php.net/note/delete/94311 Reject -- https://master.php.net/note/reject/94311 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162194) next »