carbonize:
--------------------------------------------------------------------------------
If there is a line then there will always be an end of line just as there is a
start of the line.
--------------------------------------------------------------------------------


Not exactly; text file may end without "end of line" (EOL) sequence in the end
(before the so called "end of file" EOF), what is sometimes desired, but -
according wikipedia - convention advices to add the last "useless" EOL before
EOF. It is more complicated than it may seem; see
http://en.wikipedia.org/wiki/Newline .

carbonize:
--------------------------------------------------------------------------------
And you are wrong to say nothing should come after the ?> in PHP as you can be
using PHP within HTML.
--------------------------------------------------------------------------------


Yes, but it is not what pit7 wrote about; if you mix PHP with some "outer
unprocessed" text in one file you have no other mean to do so. But if you deal
with some "PHP application" you mostly have just bunch of PHP only files and
moreover you must ensure that loading these files will not do anything with
output buffer. I think that PHP has some built-in dealing with trailing
whitespace in included files, but I'm not sure how efficient it is. If there is
none, then included PHP file "<?php ?>¶" would pollute output buffer with one
EOL, what might potentially screw up something (eg. abort any further attempt to
change response headers or something).

-- 
<http://forum.pspad.com/read.php?2,56574,56603>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem