Re: To ?> or not to ?>

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

 



On 12-04-03 11:39 PM, Donovan Brooke wrote:
Stuart Dallas wrote:
[snip]
Usually when setting headers after such a script has been included when output buffering is turned off. Personally I never put the closing ?>   in if it's at the end of the file because it's unnecessary and can cause issues if it's present, but it's personal preference more than anything else.

Ultimately you have to consider that there's a reason it's optional - things like that don't generally happen by accident. I remember Rasmus commenting on this style issue a few years back so a search of the archives should find an "official" position.

-Stuart


Could using ob_start and ob_end_flush eliminate the ambiguity of whether
or not to use '?>'?

In the generally recommended case of don't use them at the end of your file... where's the ambiguity?

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
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