Re: PHP 4.0 Bug #4288: parse error when trying to use <?xml ... ?> declaration

From: Date: Tue, 02 May 2000 08:30:20 +0000
Subject: Re: PHP 4.0 Bug #4288: parse error when trying to use <?xml ... ?> declaration
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-18342@lists.php.net to get a copy of this message
>> >>>test.php >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" >> "DTD/xhtml1-strict.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xml:lang="en" lang="en"> >> <head>foo</head> >> <body>bar</body> >> </html> >> <<<test.php >> >> I get the following parse error when trying to view this: >> >> Parse error: parse error in /home/httpd/html/test.php on line 1 You probably have "short tags" option on. Turn it off and use <?php for PHP tags. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#18342) next »