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

dba_insert() not working

Posted by latheesan, 01-09-2008, 08:30 AMHello, I am trying to create a class to handle dba in...

How is freestylehosting.com?

Posted by Shazan, 08-30-2002, 06:13 AMHello everyone! I'd like to know if freestylehosting.com...

horde webmail issue

Posted by madpato, 06-26-2008, 02:47 PMHi, me again U.u I have a problem with horde webmail I...

Stop spammers from spoofing my email domain?

Posted by mifbody, 05-04-2007, 06:55 AMIs there any way to stop spammers from spoofing my...

I doubt anyone can help, but here goes....

Posted by worldveil, 09-12-2007, 11:04 PMHi all, I doubt that anyone can solve this, but here...