Re: is <?= good?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Cummings wrote:

Daevid Vincent wrote:
-----Original Message-----
From: Ashley Sheridan [mailto:ash@xxxxxxxxxxxxxxxxxxxx]
...as those tags only work when short_tags are turned on, which
itself causes problems with outputting XML from PHP.
Can you elaborate on this Ashley?

I use short tags and I output XML all the time. In fact I'm knee deep in
building an API right now for Panasonic Avionics that is all XML based. We
have hundreds of airplanes hitting the API, sending XML and getting XML
back -- all via LAMP. I'm also simultaneously doing some cURL JSON-RPC
bi-directional communication.

This is the second XML API I've written for enterprise level service. I
have no problems at all.

I call poppycock. This sounds like FUD to me. ;-)

It's called a standard:

     http://www.w3.org/TR/REC-xml/#sec-pi

A processing instruction without a target is incorrect. What should process the data if there is no target? The assumption of PHP when no target is declared is not part of the standard. Just because you've done two anecdotal enterprise projects and haven't had a problem, doesn't make it right.

I spoke too fast, I thought we were talking about <? and not <?=
The latter is questionable since technically the = could be considered a processing character (at least from what I read in the spec. Perhaps it is ambiguous though with other languages.

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux