Re: PHP tags - any reasons to close ?>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 23, 2008 at 8:32 AM, Martin Zvarík <mzvarik@xxxxxxxxx> wrote:> 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?>> 3) What's the reason of making an empty space after ?>> I've also seen this in some projects.>>> Thanks for ideas,> Martin>> --> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php>>
If you can avoid closing the php block then do it.  There are too manyhorrible editors and people who don't know what they're doing to evengive yourself this headache.  I can't count the number of times thatmy scripts have stopped working when I have output buffering turnedoff because someone  else thought it'd be funny (not really) to putlots of extra line returns and spaces at the end of one of my files.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux