KNOWNHOST KNOWLEDGE BASE

Hosting Question? Find the Solution - Browse our Guides, Articles, and How-To's

What is the “premature end of script headers” PHP error?

A common php error seen, however rarely known or understood is the “headers already sent” error. Which may look similar to this: Why does it happen? Premature end of script headers “actually means”, the script stopped for whatever reason before it returned any output to the web server. This can be an extremely difficult error […]

What is the “headers already sent” PHP error?

Category: Common Issues
Tags: # # #

A common error seen, however rarely known or understood is the “headers already sent” error. Which may look similar to this: Why does it happen? To understand why headers must be sent before output it’s necessary to look at a typical HTTP response. PHP scripts mainly generate HTML content, but also pass a set of HTTP/CGI headers […]