Re: PHP tags - any reasons to close ?>

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

 



On 23 Sep 2008, at 13:32, Martin Zvarík wrote:
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?

Closing the PHP tag is implicit at the end of a file to avoid extra unwanted white-space.

2) What if you would not close any 100% PHP files?

Nobody would care.

3) What's the reason of making an empty space after ?>
I've also seen this in some projects.

Pass, but without output buffering they may have problems with cookies and other header-setting features.

-Stut

--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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