Re: <?xml ?> parsing problem
| From: | David Otton | Date: | Sat, 28 Jun 2003 10:49:46 +0000 |
| Subject: | Re: <?xml ?> parsing problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153253@lists.php.net to get a copy of this message | ||
On Sat, 28 Jun 2003 12:33:27 +0200, you wrote:
>I have problem in including this text in my PHP parsed file for XHTML
>definition:
>It works if I remove the first line:
>
><?xml version="1.0" encoding="iso-8859-1"?>
>So, I am assuming PHP has problems with the <? ?> symbols, as they are
>recognised to be PHP code delimiters.
Yup.
try
<? echo ('<?xml version="1.0" encoding="UTF-8"?>' .
"\r\n"); ?>
or turning short tags off.