Note Submitter: francois at bonzon dot com
----
With output buffering on, when sending headers that shouldn't have any data after them, be sure to erase the buffer before exit()ing the script! Like this:
<?php
ob_clean();
exit();
?>
If you don't erase the buffer, in case it was not empty, after sending the headers PHP will still send the buffer content to the browser.
I had Firefox show strange behavior with some of my pages, that it took me quite some time to debug. It was simply because my script was returning 304 Not Modified headers along with the start of an HTML page.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.