note 9361 added to require

From: Date: Sun, 29 Oct 2000 07:09:47 +0000
Subject: note 9361 added to require
Groups: php.notes 
Request: Send a blank email to php-notes+get-7169@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. http://www.php.net/manual/function.require.php

« previous php.notes (#7169) next »