php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32129 Header doen't work on an individual script
Submitted: 2005-02-27 13:59 UTC Modified: 2005-02-27 16:03 UTC
From: fambizzari at tm4b dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2005-02-27 13:59 UTC] fambizzari at tm4b dot com
Description:
------------
I'e been using header("location: http://www.tm4b.com "); throughout my codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this case, it is restrcited to pa particular script which is no different to the others in anyway.

For your info, any code placed after the header does not get processed e.g. <? print "hello";?>.

Reproduce code:
---------------
<?
header("location: http://www.tm4b.com "); 
?>

Expected result:
----------------
To redirect the user to the homepage.

Actual result:
--------------
Blank screen.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-27 14:30 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

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.



 [2005-02-27 14:32 UTC] fambizzari at tm4b dot com
It appears that there has been some type of issue with the cache, which has caused this error. I am investigating it and will return shortly.
 [2005-02-27 14:34 UTC] sniper@php.net
Cache problems are not PHP bugs. Please ask further questions on the php-general mailing list.

 [2005-02-27 14:37 UTC] fambizzari at tm4b dot com
I apologise, but i didn't realise that.
 [2005-02-27 14:43 UTC] sniper@php.net
It sometimes happens that you hit a blank page (unrelated to header()) and that is cached -> next request gives the same blank page from cache.. there are ways to avoid this, but please discuss this on php-general@lists.php.net

 [2005-02-27 14:44 UTC] fambizzari at tm4b dot com
THankyou.
 [2005-02-27 16:03 UTC] tony2001@php.net
No bug -> bogus.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Oct 20 18:03:38 2021 UTC