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())
-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
[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( !
-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
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
* 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
--- 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())
7 matches
Mail list logo