note 17505 modified in language.basic-syntax by irc-html

From: Date: Sun, 30 Dec 2001 03:49:23 +0000
Subject: note 17505 modified in language.basic-syntax by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23957@lists.php.net to get a copy of this message
[Ed Note: This is because of short_tags, <?xml turns php parsing on on, because of the <?. --irc-html@php.net] I am moving my site to XHTML and I ran into trouble with the <?xml ?> interfering with the <?php ?> method of escaping for HTML. A quick check of the mailing list confirmed that the current preferred method to cleanly output the <?xml ?> line is to echo it:<br> <?php echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); ?> --was-- I am moving my site to XHTML and I ran into trouble with the <?xml ?> interfering with the <?php ?> method of escaping for HTML. A quick check of the mailing list confirmed that the current preferred method to cleanly output the <?xml ?> line is to echo it:<br> <?php echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); ?> http://www.php.net/manual/en/language.basic-syntax.php

« previous php.notes (#23957) next »