note 9361 modified in function.require by imajes

From: Date: Sat, 19 Jan 2002 12:08:24 +0000
Subject: note 9361 modified in function.require by imajes
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25136@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 be careful about blank lines in the require() files. --was-- 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. http://www.php.net/manual/en/function.require.php

« previous php.notes (#25136) next »