note 9361 modified in function.require by irc-html

From: Date: Sat, 19 Jan 2002 12:02:48 +0000
Subject: note 9361 modified in function.require by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25131@lists.php.net to get a copy of this message
If you are using require() and the file contains only php code, any blank lines outside <?php .. ?> will cause the server to send out header information. You will get "header already sent by" warning, if you try to send header information, as in if ($redirect){ header("Location: $redirect"); } So becareful about blank lines in the require() files. --was-- If you are using require() and the file contains only php code, any blank lines outside &lt;?php .. ?> will cause the server to send out header information. You will get "header already sent by" warning, if you try to send header information, as in if ($redirect){ header("Location: $redirect"); } So becareful about blank lines in the require() files. http://www.php.net/manual/en/function.require.php

« previous php.notes (#25131) next »