the XML spec says that the declaration has to appear on the first line with no whitespace before it.
developers will wonder why XML parsers don't accept their PHP script if they accidently put whitespace before <?php or output something before the declaration is sent.
This seems to be one of the key issues that people seem to be glossing over!
Richard Heyes wrote:
Since there are no drawbacks at all to the <?xml detection, and since itSomething else to aid the writing of portable scripts is to allow the
does cover a great deal of the problem (taking into account the very
limited scope of the problem), I don't see a good reason not to add
it. Rasmus put it very well in one of his recent letters - PHP is not a
purists' language, complex problem sometimes require 'ugly' solutions...
setting
of short_open_tag from the script with ini_set(), for either subsequent
code,
or subsequently included files.
--
Richard Heyes
V-webmail - http://www.v-webmail.co.uk
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php