Q:

What means the PHP warning "Cannot add header information - headers already sent ..."?

2
Like
Answer
Comment
Flag
Thanks for your feedback!
A:

2 Answers

rank
1
2
Like
Comment
Flag
HAWHAW automatically creates the correct mime-type in the HTTP response header according to the detected browser. The HTTP header has to be created before any other content is sent. When your application initiates some output, PHP will create a standard header with a mime-type text/html by default. When then HAWHAW tries to create the appropriate header command, it's too late: Header and output are already sent out, there's no way to modify the header afterwards. HAWHAW applications should never use commands like echo or printf because all required output is done by HAWHAW when you call the HAW_deck's object function create_page(). Make sure that there are not empty lines in your script outside of your PHP tags. One single blank character or carriage return before <?php can be enough to create the wrong HTTP header.  more

Related Videos

rank
2
Like
Comment
Flag
HAWHAW automatically creates the correct mime-type in the HTTP response header according to the detected browser. The HTTP header has to be created before any other content is sent. When your application initiates some output, PHP will create a standard header with a mime-type text/html by default. When then HAWHAW tries to create the appropriate header command, it's too late: Header and output are already sent out, there's no way to modify the header afterwards. HAWHAW applications should never use commands like echo or printf because all required output is done by HAWHAW when you call the HAW_deck's object function create_page(). Make sure that there are not empty lines in your script outside of your PHP tags. One single blank character or carriage return before <?php can be enough to create the wrong HTTP header.  more
hawhaw.de

Add your answer...

Top Related Experts

1.
Mandi Raymond
Adult ADD expert · Articles · 0 Likes

Top Answerers

1.
Cheap SSL Certificates
7 Answers in the past week
2.
vanity fair
7 Answers in the past week
3.
Robert Turner
4 Answers in the past week

Top Askers

1.
Frank Bell
2 Questions in the past week
2.
Frank Bigaglow
3 Questions in the past week
3.
Charles McAtee
2 Questions in the past week

Top Supporters

1.
Tom Wagner
9 Likes given in the past week
2.
Susan Brunner
3 Likes given in the past week
3.
CableAnd OtherThings Too
2 Likes given in the past week
...