ID: 8710 Updated by: sniper Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]