Re: To ?> or not to ?>

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


On Tue, 3 Apr 2012 17:29:33 -0400, Tedd Sperling wrote:

>[...]
>Does anyone have more examples of where scripts will fail 
>IF they end with "?> " (note the additional space)?

+1 on everyone's call to omit on an included file due to the potential
for sending headers.

>[... rearranged for ease of reply ...]
>You see, the scripts created image but apparently the image 
>delivery method objected to the additional whitespace.

If you're sending binary data, you're best throwing in an exit() after
the last output. It doesn't matter then whether or not you have a
closing ?>, with or without additional white space.
-- 
Ross McKay, Toronto, NSW Australia
"The chief cause of problems is solutions" -Eric Sevareid

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



[PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [Find Someone]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux