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


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to