note 17505 modified in language.basic-syntax by irc-html
| From: | irc-html@php.net | Date: | Sun, 30 Dec 2001 07:00:26 +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-23959@lists.php.net to get a copy of this message | ||
[Ed Note:
This is because of short_tags, <?xml turns php parsing 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--
[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");
?>
http://www.php.net/manual/en/language.basic-syntax.php