#32129 [Opn->Bgs]: Header doen't work on an individual script

From: Date: Sun, 27 Feb 2005 13:43:25 +0000
Subject: #32129 [Opn->Bgs]: Header doen't work on an individual script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74646@lists.php.net to get a copy of this message
ID: 32129 Updated by: sniper@php.net Reported By: fambizzari at tm4b dot com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: Linux PHP Version: 4.3.10 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2005-02-27 14:37:28] fambizzari at tm4b dot com I apologise, but i didn't realise that. ------------------------------------------------------------------------ [2005-02-27 14:34:16] sniper@php.net Cache problems are not PHP bugs. Please ask further questions on the php-general mailing list. ------------------------------------------------------------------------ [2005-02-27 14:32:43] 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:30:46] 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 13:59:25] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32129&edit=1

« previous php.bugs (#74646) next »