Re: newbie question: <?=$variable?> yields no output
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 14:48:13 -0400
Bruno Barros wrote:
And I've heard just the opposite - that they may be removed in PHP 6.
That's just what I read. And I am not for short tags. Although they
might sound appetizing, they reduce the compatibility with other
servers (on which my applications might be used on), and I don't want
that.
Encouraging good coding practices IS part of what we should be doing, as
is letting people know what kinds of problems their poor practices can
cause.
It would have dropped quickly if we didn't have a noob who finally
admitted he's too lazy to type <?php once on a page.
Yes I know but somewhere in the middle of this topic he said he was
hired to code this way so he couldn't use the other way. And I, for
instance, on Zend Studio, when I write <? it puts <?php automatically.
Actually, no, the original op was not hired to program this way. In fact, he is new to PHP, and was wondering why <?=$var;?> doesn't work.
The only one promoting short tags here is Jeremy, and even he didn't say he was hired to code this way.
It's ok if he does it - he's the only one who will be hurting when he upgrades and suddenly all of his scripts stop working. But he shouldn't be promoting bad coding practices on others, especially newbies who don't know any better.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: newbie question: <?=$variable?> yields no output
- From: Bruno Barros
- Re: newbie question: <?=$variable?> yields no output
- References:
- newbie question: <?=$variable?> yields no output
- From: kurt . krueckeberg
- Re: newbie question: <?=$variable?> yields no output
- From: Shelly
- Re: newbie question: <?=$variable?> yields no output
- From: Jeremy
- Re: newbie question: <?=$variable?> yields no output
- From: Michael Fesser
- Re: newbie question: <?=$variable?> yields no output
- From: Jeremy
- Re: newbie question: <?=$variable?> yields no output
- From: Shelly
- Re: newbie question: <?=$variable?> yields no output
- From: Jeremy
- Re: newbie question: <?=$variable?> yields no output
- From: Jerry Stuckle
- Re: newbie question: <?=$variable?> yields no output
- From: RageARC
- Re: newbie question: <?=$variable?> yields no output
- From: Jerry Stuckle
- Re: newbie question: <?=$variable?> yields no output
- From: Bruno Barros
- newbie question: <?=$variable?> yields no output
- Prev by Date: Re: Export local variable to global variable scope?
- Next by Date: Re: PHP CLI & Forking children
- Previous by thread: Re: newbie question: <?=$variable?> yields no output
- Next by thread: Re: newbie question: <?=$variable?> yields no output
- Index(es):
Relevant Pages
|