Stumped.

From: Date: Mon, 24 Jun 2002 20:15:14 +0000
Subject: Stumped.
Groups: php.general 
Request: Send a blank email to php-general+get-103663@lists.php.net to get a copy of this message
In a file with functions only, one of the functions is structured like -> function foo() { if (isset($_POST['submit'])) {
        /* DO SOME SQL */
        header('location: xxxxx');
} else {
       /* SHOW A FORM HERE */
} } I noticed today that when I turned off output buffering, that the header redirect doesn't work anymore... I turned on E_ALL error reporting, and I didn't get any errors. I checked the file that called on this particular file, and there is no 'white space' before or after <?php ?> I checked all included files that this function calls on and there is no 'white space' before or after <?php ?> Are there any other reasons why header() would fail while output buffering is off. Im running php 4.2.1 on FreeBSD 4.5-R p6 Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/

« previous php.general (#103663) next »