[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.


http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang="en-US">

 Testing Page


 Hi



When I store the above file as test.php and run in Apache, I am getting the
parse error.

The observartions are:
- When I remove XML version and just mention , I am not getting the
error.
- When I store the file as .htm, then also I am not getting error

Setting:
- PHP Version 4.3.8 , Build Date  Jul 13 2004 17:31:56
- Loaded as module on Apache/2.0.50 (Win32)

Can you pls. help me understand why parsing error occurs and how to avoid
it.

Thanks.
Suresh.

-- 
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 PROTECTED]
> instead of that line use this
>  echo "\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