Re: outputting xml declaration
| From: | Ray Hunter | Date: | Wed, 02 Jul 2003 14:14:06 +0000 |
| Subject: | Re: outputting xml declaration | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153713@lists.php.net to get a copy of this message | ||
you can always print like so...
print '<?xml version="1.0"?>';
Then the parser does not try to parse inside the line. However, I dont
know what will happen when you have short_open_tags in your php.ini file
turned on...i usually turn it all of..
--
BigDog
On Wed, 2003-07-02 at 07:33, Steven Apostolou wrote:
> Hello,
>
> The folowing code gives an error:
>
> print "<?xml version=\"1.0\"?>";
>
> This is probably because I print a questionmark? How can I avoid that an
> error is generated?
>
> Besides it's not an error in the way that it gives an errorstring but it
> writes the output in the error_log of apache...
>
> Greetings,
>
> --
> Steven Apostolou <stevena@xs4all.nl>
>