#31857 [Bgs]: header() function does not work
| From: | florian dot gleixner at gmx dot de | Date: | Sun, 06 Feb 2005 16:41:20 +0000 |
| Subject: | #31857 [Bgs]: header() function does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73562@lists.php.net to get a copy of this message | ||
ID: 31857
User updated by: florian dot gleixner at gmx dot de
Reported By: florian dot gleixner at gmx dot de
Status: Bogus
Bug Type: CGI related
Operating System: Windows NT WH3 5.2 build 3790
PHP Version: 4.3.10
New Comment:
Sorry if that bug is bogus, but then the documentation is simply wrong.
There is no hint in the header() documentation that this function
depends on php version/cgi/os/ini settings. header() does also not
throw a error/warning/notice.
Previous Comments:
------------------------------------------------------------------------
[2005-02-06 06:49:01] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Ask support questions about how to use PHP on the mailing lists.
------------------------------------------------------------------------
[2005-02-06 00:23:26] florian dot gleixner at gmx dot de
Description:
------------
I tried to add/replace HTTP headers with the header() function. I tried
all examples from the manual. Even the simple redirection with
"Location: ..." or "HTTP/1.0 404 Not Found" don't work.
Reproduce code:
---------------
<?php
header("HTTP/1.0 404 Not Found");
?>
Expected result:
----------------
HTTP/1.0 404 Not Found
Actual result:
--------------
HTTP/1.1 200 OK
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: PHP/4.3.10
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
Date: Sat, 05 Feb 2005 22:53:18 GMT
Connection: close
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31857&edit=1