Re: <?xml ?> parsing problem

From: Date: Sat, 28 Jun 2003 13:31:44 +0000
Subject: Re: <?xml ?> parsing problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-153260@lists.php.net to get a copy of this message
David Otton wrote:
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. use <?php instead of <? for php, the first one is xml-compliant, and the 2nd one isn't


« previous php.general (#153260) next »