[PHP] Parsing error when XML version is mentioned

2004-07-25 Thread Suresh Manoharan
Hey Guys, I am getting parse error [Parse error: parse error, unexpected T_STRING on line 1] when I use XML version info. ?xml version=1.0 encoding=utf-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html

Re: [PHP] Parsing error when XML version is mentioned

2004-07-25 Thread eoghan
instead of that line use this ? echo ?xml version=\1.0\ encoding=\UTF-8\?\n ? Can you pls. help me understand why parsing error occurs and how to avoid it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing error when XML version is mentioned

2004-07-25 Thread Suresh Manoharan
Thanks, Eoghan. It works. Good learning experience for me. Found more information in the following links: http://www.php.net/manual/en/language.basic-syntax.php http://www.php.net/manual/en/ini.sect.language-options.php#ini.short-open-tag Eoghan [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Parsing error when XML version is mentioned

2004-07-25 Thread Jason Wong
On Monday 26 July 2004 05:39, Suresh Manoharan wrote: Good learning experience for me. Found more information in the following links: http://www.php.net/manual/en/language.basic-syntax.php http://www.php.net/manual/en/ini.sect.language-options.php#ini.short-open-t ag Also manual Appendix