[thelist] No PHP end tag

Matt Warden mwarden at gmail.com
Mon Feb 7 17:11:38 CST 2005


Kasimir,

On Mon, 07 Feb 2005 22:20:32 +0000, Kasimir K <evolt at kasimir-k.fi> wrote:
> Hello,
> 
> I've come across a couple times php-files where the end tag ?> has been
> omitted. The good thing obviously is, that this way there won't be any
> accidental white space after the end tag messing the operations with
> headers and cookies.
> 
> But is there any downside? Will leaving it out break anything?

At worse, yes. At best, it's ugly.

Just because it works now doesn't mean it will work in future versions
(especially with PHP, where they don't mind breaking old scripts even
with a minor point release).

Just remember to delete whitespace after the closing tag.

-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list