note 42728 deleted from function.include by tomsommer

From: Date: Tue, 06 Jul 2004 11:41:46 +0000
Subject: note 42728 deleted from function.include by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72756@lists.php.net to get a copy of this message
Note Submitter: php@pulsecorp.co.uk ---- A gotcha that threw me is that includes are treated as HTML unless told otherwise (hence the <?php .. ?> requirement.) A consequence is that blank lines at the beginning and end are parsed as HTML and output. This is normally probably OK unless you are calling header("location: ...) in your calling code in which case PHP will throw an error as follows: error_handler: errno=2 errstr=Cannot modify header information - headers already sent by (output started at includefile:21) sourcefile.php errline=38 Remove the blank lines and you'll be OK!

« previous php.notes (#72756) next »