vincej Posted June 17, 2010 Share Posted June 17, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/205075-output-buffering-turned-on-has-no-impact-on-can-not-modify-header-info/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 17, 2010 Share Posted June 17, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/205075-output-buffering-turned-on-has-no-impact-on-can-not-modify-header-info/#findComment-1073552 Share on other sites More sharing options...
vincej Posted June 17, 2010 Author Share Posted June 17, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/205075-output-buffering-turned-on-has-no-impact-on-can-not-modify-header-info/#findComment-1073570 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.