Any idea?Warning: Cannot modify header information - headers already sent by
headers already sent error
Moderator: General Moderators
Answer to header problem here: viewtopic.php?t=1157
-
Breckenridge
- Forum Commoner
- Posts: 62
- Joined: Thu Sep 09, 2004 11:10 pm
- Location: Breckenridge, Colorado
You will get this warning:
Warning: Cannot modify header information - headers already sent by
if your code does output anything to the browser including a blank char before the header is sent to the browser.
Just make sure that your headers are executed before any output is made and it should work.
Warning: Cannot modify header information - headers already sent by
if your code does output anything to the browser including a blank char before the header is sent to the browser.
Just make sure that your headers are executed before any output is made and it should work.
I have read the issue that triggers the error and I agree with the reason.
But the trouble is that I am using the FuseBox architechture in PHP, thus it is really not possible to prevent from outputing something to the browser before the location(); function as there are so many templates are being included dynamically. I am using the form's action attribute as action="<? echo($_SERVER["SCRIPT_NAME"]);?>?Area=SomeArea&Action=SomeAction", so all the templates are being processed by the PHP interpreter no matter if I make any output in the template holding the location(); function or not.
Pleease help me if there is some other way of PHP's native than JavaScript stuff!
But the trouble is that I am using the FuseBox architechture in PHP, thus it is really not possible to prevent from outputing something to the browser before the location(); function as there are so many templates are being included dynamically. I am using the form's action attribute as action="<? echo($_SERVER["SCRIPT_NAME"]);?>?Area=SomeArea&Action=SomeAction", so all the templates are being processed by the PHP interpreter no matter if I make any output in the template holding the location(); function or not.
Pleease help me if there is some other way of PHP's native than JavaScript stuff!
-
Breckenridge
- Forum Commoner
- Posts: 62
- Joined: Thu Sep 09, 2004 11:10 pm
- Location: Breckenridge, Colorado
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Just to clear up some confusion: this is a PHP forum, not a fusebox forum. While fusebox is PHP-based, it is just one of tens of thousands applications written in PHP. The PHP solution to your problem has been suggested to you. If that doesn't work for you for the simple reason that you use fusebox, I'd suggest consulting a fusebox support forum like http://bombusbee.com/.SKJoy wrote:Dear, do you always use templates to output something to the browser? Please study the FuseBox technic, that will be helpful for you.LiLpunkSkateR wrote:Why would you need to have a template on a page that WONT BE SEEN?