Jump to content

output_buffering so rewrite


calmchess

Recommended Posts

well right now i have so much html being ouputed before the php that i have to increase the ouput buffer setting in php.ini to accomodate all of the html......i don't exactly know how it works that is why i'm exploring this with a thread.....any comments are welcome.

Are you using output buffering to avoid header errors? Is that what your getting at?

 

You need to simply re-organize your code so that it doesn't output prior to calling header(). It makes little sense to attempt to output something if all you are going to do is redirect to another page.

yes thorpe trying to avoid header errors I have alot of CSS in the head section of my document and php for validation code mixed in with my html.....i want to rewrite to avoid the header errors....but need best practices to stucture the document and avoid the header errors in the first place.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.