By d_l on
Can someone explain why <?php tags are not closed throughout a drupal site ..
e.g. drupal-6.2\index.php has no closing tag
I've read this blog .. http://choosetheforce.blogspot.com/2008/05/should-you-close-that-php-tag...
This is a Bad Idea. It is far from something I would defend to the death, but-- left to my own devices-- I will always close all opened tags. I recognize that PHP allows you to omit the closing tag, and the Zend coding standard goes so far as to actually forbid closing this tag for PHP-only files.
Comments
=-=
Why not to close the tags = because this removes the user error and crappy editor errors whereby white space is put after the closing tags which render all kinds of errors, that in many cases are hard to track down.
which the blog writer does elude to but doesn't spend much time elaborating on.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )