Re: newbie question: <?=$variable?> yields no output



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
==================
.



Relevant Pages

  • Re: Server Exchange/Rebuild
    ... Once you have promoted one of the other servers to a dc I would first demote ... the other one before renaming it. ... I was planning on promoting one of my existing servers, ...
    (microsoft.public.windows.server.general)
  • Re: Windows XP SP3?
    ... if I were willing to do without my favorite applications. ... they should be promoting the idea of separating the operating system ... maker from applications makers, IMO. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Cannot ping DC server
    ... >I have 4 servers all on the same subnet. ... My DC is a Windows 2003 ... > Server (Standard version) whereas my other servers are W2003 Enterprise ...
    (microsoft.public.windows.server.networking)
  • Prep forest/domains for 2003 64-bit R2 in a 2003 32-bit R2 forest?
    ... I have found posts about similar situations, but not any that apply to my ... 64-bit R2 servers will be promoted to DC's in the forest soon. ... promoting the 64-bit R2 servers? ...
    (microsoft.public.windows.server.active_directory)
  • Re: Windows XP SP3?
    ... if I were willing to do without my favorite applications. ... they should be promoting the idea of separating the operating system ... maker from applications makers, IMO. ...
    (alt.comp.hardware.pc-homebuilt)