jaikob Posted February 17, 2009 Share Posted February 17, 2009 I recently switched to debian lenny. I had to move a few of my websites hosted on a centos 5.2 Server running the newest version of PHP. Well, on Debian Lenny, I am getting error: Warning: Cannot modify header information. I NEVER got this on my CentOS box. is there a setting I need to change in php.ini? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/ Share on other sites More sharing options...
drisate Posted February 17, 2009 Share Posted February 17, 2009 You probably upgraded or downgraded your PHP server ... try switching it to the same version or your gona have a mad time converting all your stuff ;-) http://derickrethans.nl/pres-breaking/talk.html Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/#findComment-763846 Share on other sites More sharing options...
mike12255 Posted February 17, 2009 Share Posted February 17, 2009 If the above does not work, post your code and I may be able to help Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/#findComment-763868 Share on other sites More sharing options...
jaikob Posted February 17, 2009 Author Share Posted February 17, 2009 its not the code, its the config. My whole site doesn't work due to this header error. I know there is a configuration param in php.ini Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/#findComment-763874 Share on other sites More sharing options...
premiso Posted February 17, 2009 Share Posted February 17, 2009 Output buffering is the reasoning why. I believe you can set this in php.ini or in .htaccess. Either way, that is why it would work. The output was saved and displayed to the browser after processing. This is more of a bandaid to the issue, but yea. Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/#findComment-763877 Share on other sites More sharing options...
jaikob Posted February 17, 2009 Author Share Posted February 17, 2009 Output buffering is the reasoning why. I believe you can set this in php.ini or in .htaccess. Either way, that is why it would work. The output was saved and displayed to the browser after processing. This is more of a bandaid to the issue, but yea. You are god. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/145493-solved-warning-cannot-modify-header-information/#findComment-763887 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.