Re: XML tags are just a cheap rip-off of PHP tags

If you're developing any *real* PHP application, I would strongly
suggest you turn off short_tags in php.ini, which will make your code
more portable and remove the problem you reported. You can then use the
proper <?php ... ?> tags to delimit your PHP code sections. This is
recommended by all the PHP developers anyway, and has been for a long time.

So, you're wrong, there is a way to declare XML with the <? ... ?> tag
in PHP files, if you want to -- the XML declaration is optional when you
use UTF-8/16 encoding anyway, which is also highly recommended.

Jasper Bryant-Greene

dagobah1@optonline.net wrote:
> 
> PHP has been around long before you started working on XML, so don't
> denie you stold their tags.
> 
> <? ...... ?>  Couldn't you come up with something else?
> 
> If a page ends in .php there is absoluty NO WAY to decleare XML with
> your little
> <?xml version="1.0" encoding="ISO-8859-1"?> tag.
> 
> Don't you realize that by doing this, you screwed yourself.  Because
> very few people will use that tag, and thus its death will come quick. 
> The only pages that can use that tag are pages that end in .html or .asp
> which are the second and their most common extensions.  .php is quickly
> becomming number one in the extension that people use for their sites.
> 
> Now don't brush me off like you did once before when I brought this up. 
> You people really need to realize that you aren't the smartest people on
> Earth, and your word isn't law, and you aren't God.
> 
> 
> P.S. I don't want that moron spartanicus (spartanicus.3@ntlworld.ie) to
> comment, he doesn't know anything.  He's just a little sissy punk whom
> can talk big but can't back anything up.

Received on Thursday, 23 June 2005 04:43:46 UTC