RE: [PHP] xml declaration
| From: | Brinkman, Theodore | Date: | Fri, 13 Sep 2002 18:36:49 +0000 |
| Subject: | RE: [PHP] xml declaration | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-116300@lists.php.net to get a copy of this message | ||
No, no, no. 'Short tags' refers to the ability to just use '<?' as your
opening PHP tag. Unfortunately, this picks up '<?xml', which starts with
the same 2 characters. turning off short tags doesn't require you to use
the <script... format, you just have to fully specify '<?php'.
-----Original Message-----
From: Chris Boget [mailto:chris@wild.net]
Sent: Friday, September 13, 2002 10:12 AM
To: Jay Blanchard; 'Brian V Bonini'; 'PHP Lists'
Subject: Re: [PHP] xml declaration
> I don't have a problem with it validating. I was just asking basically if
> the xml declaration had to be included within PHP tags because of the
<?xml
> because my PHP complains about the XML declaration. I started thinking
> perhaps I have something configured wrong with my PHP set up or
something...
You do.
Turn off short tags (ie "<?php") and start using:
<script language="php">
instead. The two "<?" occurances is throwing PHP off...
Chris