Jump to content

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


vincej

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

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.