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. > > header("Location: http://someplace.com";); > > if( ! headers_sent()) > hea

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 param

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 Ford, Mike [LSS]
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: 23 July 2003 12:31 > 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 function

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. http://someplace.com";); if( ! headers_sent()) header("Locat

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