note 36691 modified in faq.html by pollita
| From: | pollita@php.net | Date: | Tue, 29 Jun 2004 02:13:32 +0000 |
| Subject: | note 36691 modified in faq.html by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72083@lists.php.net to get a copy of this message | ||
If you try to include an XHTML document in a PHP document, you may be including this:
<?xml version="1.0" encoding="iso-8859-1"?>
which would, of course, be read as PHP code. To avoid this problem, use:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>";
?>
Hope I can save you from those nasty warning messages :)
--was--
If you try to include an XHTML document in a PHP document, you may be including this:
<?xml version="1.0" encoding="iso-8859-1"?>
which would, of course, be read as PHP code. To avoid this problem, use:
echo "<?xml version=\"1.0\"
encoding=\"iso-8859-1\"?".">"; ?>
Hope I can save you from those nasty warning messages :)
http://php.net/manual/en/faq.html.php