header already sent?
Posted by Calibaba, 03-27-2008, 12:00 PM PHP Warning: Cannot modify header information - headers already sent in /home/user/public_html/ads/adserv.php on line 68, referer: http://www.domain.com/ads.shtml What does this mean? All was done was cpanel transfer between two cpanel boxes, that is all. Still using php 4.4.8 / mysql 4 with apache 2.2 (centos 5)
Posted by tix3, 03-27-2008, 01:22 PM Check tp see if there are any whitespaces before the
Posted by NicAddress, 03-27-2008, 05:00 PM Is the output_buffering setting in PHP.ini the same as the old server? Just a thought..
Posted by whmcsguru, 03-27-2008, 07:32 PM This happens when some sort of whitespace is there already. As suggested, check all pages for whitespace before the and after the ?> lines. Typically, this will happen in a configuration file. Check there first.
Posted by RBBOT, 03-28-2008, 10:30 AM This can happen on one machine for a script that works on other if the script generates "notice" or "warning" level errors, and you have display_errors set to show these levels of error in php.ini. Because the notice/warning gets displayed before the script thinks it has output any data, it can cause a header() function call to fail.