|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19311 header function with location not working
Submitted: 2002-09-09 07:22 UTC Modified: 2002-09-09 07:24 UTC
From: marpas9756 at mail dot drq dot pl Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.3 OS: Win2000
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: marpas9756 at mail dot drq dot pl
New email:
PHP Version: OS:


 [2002-09-09 07:22 UTC] marpas9756 at mail dot drq dot pl
I try simple redirection script
header("Location: http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/sample.htm");
but my browser displaing only blank white window. Apache version is 2.0.40 with php working as module.
When I try to execute this script if php is working as cgi application everything is going ok.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-09 07:24 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".

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 24 18:03:39 2023 UTC