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 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.

Was this answer helpful?

 Print this Article

Also Read

looking for creditcard processing international

Posted by zhai, 09-05-2001, 07:36 PMi'm nearly decide to use service from revecom.com but after...

Disallow a site from sending out emails

Posted by HappyPike, 05-04-2007, 12:51 AMHi, Is there a way to disallow a certain site from...

Having Problem with SQL need help

Posted by shawnchin, 01-26-2011, 09:11 AMHello World, Having Problem of (Warning:...

Second slash on production server

Posted by Morecoffee, 03-07-2010, 01:52 PMHello, When I develop PHP scripts on my local server...

Installing Glassfish Application Server ?

Posted by john551, 09-16-2008, 10:54 AMHello Friends, How to install Glassfish Application...