|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15955 header("Location: ...") doesn't work
Submitted: 2002-03-08 07:12 UTC Modified: 2002-03-11 06:22 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: t dot zander at brain-at-work dot de Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.1.2 OS: Win 98 SE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: t dot zander at brain-at-work dot de
New email:
PHP Version: OS:


 [2002-03-08 07:12 UTC] t dot zander at brain-at-work dot de

I'm running PHP 4.1.2 with Apache 1.3.x.

And in my projekt the function header("Location: ... ") doesn't work :(

I tried this with several projects. Always the same effect. The browser/server seems to ignore the command. If I use the same browser on an other server it works fine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-08 07:21 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

 [2002-03-08 07:27 UTC] t dot zander at brain-at-work dot de

i don't get any error message or anything else

only a blank site, with nothing

also the log files don't have anything

it's really like he's ignoring the header function with 4.1.2 on win 98 se
 [2002-03-08 07:30 UTC]
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit

 [2002-03-08 07:38 UTC] t dot zander at brain-at-work dot de

i'm not a noob, that's not a support question it's a bug

i wrote enough projects to decide whats a bug and when i'm to silly to code something
 [2002-03-08 07:52 UTC]
Without complete, short script that fails I'm pretty sure
you're doing something wrong.


 [2002-03-08 07:59 UTC] t dot zander at brain-at-work dot de
what's wrong with following file:


When it works on other servers, but not on 98SE with 4.1.2

with 98SE and 4.1.1 it's also working
 [2002-03-11 05:59 UTC]
well, for a start: "" is *not* a valid
URL, "" is

the trailing slash behind the Hostname is required by
the RFCs
 [2002-03-11 06:03 UTC] t dot zander at brain-at-work dot de
arg was just an exapmle :)

i'm calling header("Location: artikel.php?".$QUERY_STRING);
 [2002-03-11 06:07 UTC]
Even worse, the protocol and full hostname are required too by the RFCs.

 [2002-03-11 06:22 UTC] t dot zander at brain-at-work dot de
you won :) i'll try this :)
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 14:01:26 2020 UTC