You are here: Re: newbie question: <?=$variable?> yields no output « PHP Programming Language « IT news, forums, messages
Re: newbie question: <?=$variable?> yields no output

Posted by Jeremy on 09/28/07 23:31

Jerry Stuckle wrote:
>
> Not if the server is configured correctly (i.e. short tags off).

There is nothing inherently correct about turning on short tags.

>
> Oh Gawd, what a mess.
>

Matter of opinion. It also only happens once per document. I would
rather have "a mess" isolated to one line at the top of a document than
a bunch of ugly code throughout.

>>> might be removed entirely in upcoming versions
>
> Plan on it - it's already been announced they will do it. Just a matter
> of when.

This is incorrect information. The topic has been discussed several
times by the community and it has always been decided that short tags
are staying for the reasons I have already discussed. Mainly, that
conflicting syntax with an entirely separate language is no basis for
removing a language feature. PHP is not XML.

PHP can also be used to generate PHP. What do you propose to do about
long tags then? Answer: escape them. Just like XML declarations ought
to be escaped.

>
> What do you think "deprecated" means?
>

It means that a feature has been officially removed from the language or
API, but is left behind for a time while coders adjust to its absence.
Like I said above, this is not the case for short tags. What do you
think it means?

>
> Fine for you. But you shouldn't be espousing your crap style on others.
>

What do you think "espousing" means? I never told anyone to use short
tags, if that's what you (unsuccessfully) tried to say. I'm just
arguing that anti-shorttagists shouldn't be using incorrect information
and logical fallacies to "espouse[sic] their style on others". I won't
accuse your style of being crap, though, because it's not.

 

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

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