Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What means the PHP warning “Cannot add header information – headers already sent …”?

0
10 Posted

What means the PHP warning “Cannot add header information – headers already sent …”?

0

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

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.