Re: is <?= good?
| From: | Robert Cummings | Date: | Fri, 11 Jun 2010 17:57:06 +0000 |
| Subject: | Re: is <?= good? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306050@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
Daevid Vincent wrote: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.It's called a standard:-----Original Message----- From: Ashley Sheridan [mailto:ash@ashleysheridan.co.uk] ...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. ;-)http://www.w3.org/TR/REC-xml/#sec-piA 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.