Jump to content

[SOLVED] Warning: Cannot modify header information


Recommended Posts

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 :)

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.

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!

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.