Re: <?xml ?> parsing problem
| From: | Ernest E Vogelsinger | Date: | Sat, 28 Jun 2003 10:45:20 +0000 |
| Subject: | Re: <?xml ?> parsing problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153252@lists.php.net to get a copy of this message | ||
At 12:33 28.06.2003, Daniele Baroncelli said:
--------------------[snip]--------------------
>I have problem in including this text in my PHP parsed file for XHTML
>definition:
>
><?xml version="1.0" encoding="iso-8859-1"?>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html xmlns="http://www.w3.org/1999/xhtml">
>
>
>It works if I remove the first line:
>
><?xml version="1.0" encoding="iso-8859-1"?>
>
>
>So, I am assuming PHP has problems with the <? ?> symbols, as they are
>recognised to be PHP code delimiters.
I believe short_open_tag is set to "On" in php.ini, thus when seeing '<?',
PHP starts acting.
>Considering that I don't have control of the PHP configuration on the
>server, does anyone have any idea of how I could handle this parsing
>problem, still being able to define the file as XHTML?
Within your PHP code:
echo '<?xml...';
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/