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.

Помог ли вам данный ответ?

 Распечатать статью

Также читают

(C++)Displaying a char array in a CLI form

Posted by Die4Ever, 01-11-2008, 05:15 PMIt's my first time using Windows Forms, and I'm trying to...

Reseller Account

Posted by yachtinterac, 09-02-2002, 10:00 AMHi, Does anybody know of a company that does web...

Mysql not connecting....

Posted by mouseattack, 06-16-2006, 03:09 PMHere I was trying to change the password of the...

FTP login problem

Posted by crazyaboutlinux, 04-14-2009, 10:42 AMone of my client is facing to connect FTP server...

Mirror dynamic website on other domain

Posted by ouray, 02-19-2010, 07:51 PMDoes anyone know of a way to mirror a website on another...