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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Testing Page</title> </head> <body> <p>Hi</p> </body> </html> 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 <?xml?>, 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