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:
<?php
// no output here
?>
just whitespace, are the line feeds ignored?
<?php
header(...)...
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?
Jeff
just printing the header and leaving a blank line.
Does php ignore whitespace before a header:
<?php
// no output here
?>
just whitespace, are the line feeds ignored?
<?php
header(...)...
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?
Jeff
Comment