[PHP] header headers_sent BUG

2003-07-23 Thread James M. Luedke
Hello all: I am having a hard time with a small piece of code. I was wondering if someone may be able to explain why the following code will not work... I have been scratching my head for a few hours now and I am stumped. ?php header(Location: http://someplace.com;); if( ! headers_sent())

RE: [PHP] header headers_sent BUG

2003-07-23 Thread Ford, Mike [LSS]
-Original Message- From: James M. Luedke [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 07:07 I am having a hard time with a small piece of code. I was wondering if someone may be able to explain why the following code will not work... I have been scratching my head for a few

RE: [PHP] header headers_sent BUG

2003-07-23 Thread Jay Blanchard
[snip] Hello all: I am having a hard time with a small piece of code. I was wondering if someone may be able to explain why the following code will not work... I have been scratching my head for a few hours now and I am stumped. ?php header(Location: http://someplace.com;); if( !

RE: [PHP] header headers_sent BUG

2003-07-23 Thread Ford, Mike [LSS]
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 23 July 2003 12:31 big snip Also, do those spaces exist in your code? If so you may want to change; if( ! headers_sent()) to if(!headers_sent()) There's nowt wrong there -- both of those are

Re: [PHP] header headers_sent BUG

2003-07-23 Thread Marek Kilimajer
Added to this, your later header replaces the earlier one of the same type, unless you specify false to the second parameter of header() function. More in the manual. Ford, Mike [LSS] wrote: -Original Message- From: James M. Luedke [mailto:[EMAIL PROTECTED] Sent: 22 July 2003 07:07 I

Re: [PHP] header headers_sent BUG

2003-07-23 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): Added to this, your later header replaces the earlier one of the same type, unless you specify false to the second parameter of header() function. More in the manual. The second parameter specifies whether it will overwrite an existing

Re: [PHP] header headers_sent BUG

2003-07-23 Thread Chris Shiflett
--- James M. Luedke [EMAIL PROTECTED] wrote: I was wondering if someone may be able to explain why the following code will not work... I have been scratching my head for a few hours now and I am stumped. ?php header(Location: http://someplace.com;); if( ! headers_sent())