You are here: Re: [PHP] Is echo tag reasonably portable? « PHP « IT news, forums, messages
Re: [PHP] Is echo tag reasonably portable?

Posted by Robin Vickery on 11/15/05 20:18

On 11/15/05, Jochem Maas <jochem@iamjochem.com> wrote:
>
> so how many people actually _need_ to write portable code? ok so many you
> are starting a project which will become a runaway success but until it starts
> receiving alot of attention use of short-open-tags is probably not your biggest
> issue either.

I'm lazy. I prefer to do it right the first time so I don't have to go
through thousands of lines of code correcting it.

> lets assume that everyone should be writing completely portable apps, why does this
> ini setting exist? what is the point of offering a setting that can be set to a
> bad(tm) value by design?

Back-compatibility.

Short tags were around before the long form and millions of scripts
were already using them by the time the xml/xhtml issue became
apparent.

Security really doesn't have anything to do with this.

Short tags have been deprecated for years. Both the manual and the
php.ini file itself advise people not to use them. Personally I think
it's about time they were turned off by default, but that's bound to
annoy a lot of people who've ignored the warnings.

-robin

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация