On 4/4/12 12:14 AM, Donovan Brooke wrote:
Robert Cummings wrote:
[snip]
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?
http://www.php.net/manual/en/function.include.php
http://www.php.net/manual/en/language.basic-syntax.phpmode.php
Those seem to suggest to use them... thus the ambiguity.
Donovan
Most major projects at this point leave it off, and their coding
standards say to as well. The official PHP docs are generally
non-commital by design, but outside of those I think it's pretty
well-established to just leave it off and be happy.
--Larry Garfield
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php