Re: Code spacing causing HEADER problem?

From: Date: Sat, 18 Sep 2004 00:30:31 +0000
Subject: Re: Code spacing causing HEADER problem?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197070@lists.php.net to get a copy of this message
On Saturday 18 September 2004 06:35, BOOT 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");?> If the manual didn't already made it abundantly clear why that is, a quick search in the archives for the error message you get when running (b), would've given you more answers than you need. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Peers's Law: The solution to a problem changes the nature of the problem. */

« previous php.general (#197070) next »