note 64485 deleted from function.echo by bjori

From: Date: Sat, 15 Apr 2006 18:43:28 +0000
Subject: note 64485 deleted from function.echo by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108200@lists.php.net to get a copy of this message
Note Submitter: thomas (http://www.tgohome.com/) Reason: in docs ---- If you use: <?xml enc....?> in your pages, you'll probably see that it'll come out with a parse error. That's because it's interpreting it as PHP (because of the <?xml?> blocks, so the workaround, which I use for my site is: <?php echo('<'.'?xml version="1.0" encoding="UTF-8"?'.'>'); ?> When PHP parses the script, it'll put '<' and '?xml vers...' together with '?' and '>'. Then PHP won't parse that as a codeblock, and w3.org likes it :). See it in action (source code) at http://www.tgohome.com/

« previous php.notes (#108200) next »