[PHP] Code spacing causing HEADER problem?

2004-09-17 Thread BOOT
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

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Davidson
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 [EMAIL PROTECTED] wrote: I don't get

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Wong
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

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Curt Zirzow
* Thus wrote BOOT: 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)