Re: Problem with "<?xml ....>" inside the PHP code, due to "?"

From: Date: Thu, 01 Aug 2002 16:37:27 +0000
Subject: Re: Problem with "<?xml ....>" inside the PHP code, due to "?"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110699@lists.php.net to get a copy of this message
Hi, Friday, August 2, 2002, 2:03:18 AM, you wrote: SF> Anyone know the workaround with the situation here? Here is the sample SF> script. The problem is I include the XML tag into the PHP variable and it SF> messed up everything. It all had to do with "?" here since PHP use it also. SF> --clip-- SF> <?php SF> $XML = "<?xml version='1.0' SF> encoding='UTF-8'?><Product>Apple</Product>"; SF> echo $XML; ?>> SF> Thanks, SF> FletchSOD Another variation with single quotes :) echo '<?xml version="1.0"?>'; -- regards, Tom

« previous php.general (#110699) next »