[thelist] PHP Header oddness

Mark Groen evolt at markgroen.com
Fri Oct 7 10:23:17 CDT 2005


----- Original Message ----- 
From: "Steve Lewis" <>
To: <thelist at lists.evolt.org>
Sent: Friday, October 07, 2005 8:07 AM
Subject: Re: [thelist] PHP Header oddness


> The "bug" appears to be that between the if clause and the else
clause,
> the parser sees two header calls, and balks at the second, even though
> it cannot execute both.  When the call to header() is replaced by the
> function above, centralizing the call, the warning goes away.  It
seems
> incredibly odd, but the workaround could be masking some other issue.

But you do have some output from the first, re: in the conversation
between the php engine and Apache? And wouldn't it cause Apache to
return a code 302 which is output, ergo, output already sent? In other
words, it's not a question of execution per se... thoughts?

cheers,

        Mark




More information about the thelist mailing list