Strange header displaying

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
akg
Forum Newbie
Posts: 1
Joined: Fri Oct 25, 2002 4:08 am

Strange header displaying

Post by akg »

Hello all,

I am running PHP 4.2.2 with Apache 1.3.26.

All the pages of my web site are using output buffering - ob_start() etc.

999 requests out of 1000 work just fine, but one odd request is served with HTTP headers
being inserted inside the HTML content of the page, for no valid reason I can think of. Obviously, the "page" cannot be properly displayed by browsers, since they do not interpret the headers as headers, and rightfully so - they are mixed with HTML content.

Not just one or a few headers are inserted inside the HTML page - all the headers, including the HTTP/1.1 OK.

I use output buffering to add HTTP headers against caching.

Is it a known issue or maybe should I just get rid of ob...(), and fight against caching by other means?

As a bonus question, I don't seem to get anti caching (Expires: -1) to work with Konqueror, the KDE browser. Works fine with all other browsers, except this one. This doesn't particularly pertain to PHP, but thought I might as well just ask

Thank you for the feedback. :wink:
Post Reply