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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to