Jump to content

Output Buffering turned on has no impact on "Can not modify header info"


Recommended Posts

I did read the sticky on Headers and output buffering. In a manner of speaking I do not have a problem as I did find the rogue white space that caused the initial error message.

 

HOWEVER, as a permanent fix I turned on output buffering within PHP.ini  with output_buffering=4096    curiously it made no difference when I re-introduced the white space.

 

I must be something wrong in the php set up .... any ideas ?

 

Many thanks Vincej

A) Output buffering should only be used when you want to buffer output (i.e. you would like to capture it...) NOT to fix or hide errors in your code.

 

B) Did you check using a phpinfo(); statement that the setting actually took effect?

I have output_buffering=on    nevertheless,  php(info) reports 'no value'  - so I'm confused on that.

 

I had always learned that output_buffering could be turned on if:

 

a) you wanted to send header data in the middle of your code

 

b) You did not want to be forced into removing whitespace from the beginning of your code. am I wrong here ?

 

thanks vincej

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.