The problem comes if you use php to generate xml documents.... in xml you
use the tag <?xml.. if php is setup to handle <? then it takes that then
throws a parse error as it attempts to read the xml bit.

Simplest solution if you are using php to generate xml tags is to always use
php to generate those.. ie echo('<?xml....'); works fine
----- Original Message -----
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 8:05 PM
Subject: RE: [PHP] difference between <?php and <?


>
> There isn't any difference, if your php.ini settings allow it
> (short_tags, I believe), you can use <? instead of <?php
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 09, 2001 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] difference between <?php and <?
>
>
> Hi,
>
> I am a newbie at this PHP thing and I have been working from information
> on the web and from books.
>
> I noticed that some start the PHP script with <? and some start with
> <?php.  Actually I have noticed that one of the first PHP script in my
> book uses both methods interchangeably.
>
> Is there a real difference between the two?
>
> Or maybe I just haven't noticed something.
>
> Peter
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To
> contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to