Re: Code spacing causing HEADER problem?

From: Date: Sat, 18 Sep 2004 00:00:50 +0000
Subject: Re: Code spacing causing HEADER problem?
Groups: php.general 
Request: Send a blank email to php-general+get-197069@lists.php.net to get a copy of this message
You absolutely can not send anything to the browser before a header is sent... so if you put a space in there, it gets sent to the client.. no good.. its not the code thats the problem . its that you escaped from php and left space between. Jason "BOOT" <pfine@of-law.com> wrote: > > I don't get this! > > Why does example (a) work for me but not example (b) ??? I realize that no > output can be sent to the browser before the header but why would code > linepace effect? Thanks for any info! > > > (a) > > <?php $a = 1; ?> > <?php header("Location: 1.php");?> > > > (b) > > <?php $a = 1; ?> > > <?php header("Location: 1.php");?> > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#197069) next »