Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- header questions
September 28, 2008, 1:40 pm
rate this thread
I'm having some trouble wrapping my mind around header(), I'm used to
just printing the header and leaving a blank line.
Does php ignore whitespace before a header:
// no output here
just whitespace, are the line feeds ignored?
Also, I take it that we can have multiple header functions. If I now
echo something or just have embedded html, I take that php inserts a
blank line and the header is finished?
Why can't I just echo the headers and not use header?
Re: header questions
Yes, PHP ignores whitespace.
No, PHP does not insert a blank line. It inserts whatever you echo.
However, ANY output causes the headers to be sent and the data portion
Because headers are headers and all the rest is data. Two entirely
Remove the "x" from my email address
JDS Computer Training Corp.