PHP 4.0 Bug #8710 Updated: Cannot add header information - headers information already sent ...

From: Date: Mon, 15 Jan 2001 13:59:03 +0000
Subject: PHP 4.0 Bug #8710 Updated: Cannot add header information - headers information already sent ...
Groups: php.dev 
Request: Send a blank email to php-dev+get-44119@lists.php.net to get a copy of this message
ID: 8710 Updated by: sniper Reported By: bbrizzio@libero.it Old-Status: Open Status: Bogus Bug Type: *General Issues Assigned To: Comments: User error. You should have <?php ?> tags also in the included file.Or you have some whitespaces in the beginning of either files. anyway, this is not a bug in PHP but in your scripts. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-15 08:53:08] bbrizzio@libero.it If I define a constant in external files (require or include) PHP give me "headers already sent by main.php", "output started in const.php". main.php: include("inc/const.php"); // constants definition ... header(...); // here I try to send an header const.php: define("WB","webmaster"); --------------------------------------------------------------------------- [2001-01-15 08:50:27] bbrizzio@libero.it If I define a constant in external files (require or include) PHP give me "headers already sent by main.php", "output stated in const.php". main.php: include("inc/const.php"); // constants definition ... header(...); // here I try to send an header const.php: define("WB","webmaster"); --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8710

« previous php.dev (#44119) next »