Re: PHP tags - any reasons to close ?>

From: Date: Tue, 23 Sep 2008 13:27:27 +0000
Subject: Re: PHP tags - any reasons to close ?>
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280764@lists.php.net to get a copy of this message
Martin Zvarík schreef:
Hi, I have seen some projects where people start with opening tag <?php but they DON'T close it with ?> This is especially the case of CONFIG.php files... 1) What's the reason of that? 2) What if you would not close any 100% PHP files?
I second what Robbert and Richard said, actually I'm pretty sure I've read Rasmus himself advocate the practice of leaving out the closing php tag on files that contain no output
3) What's the reason of making an empty space after ?> I've also seen this in some projects.
most likely someone with a borked editor or with a complete misunderstanding of output buffering, either way don't do it!
Thanks for ideas, Martin


Thread (14 messages)

« previous php.general (#280764) next »