|
Posted by Tim Roberts on 09/23/06 04:26
Jerry Stuckle <jstucklex@attglobal.net> wrote:
>Tim Roberts wrote:
>>
>> I've never understood the aversion to the <?= construct in PHP. One of the
>> appeals of PHP is that I can write full PHP modules for the processing, and
>> HTML with <?= escapes for the presentation side. It's like having a
>> built-in templating engine.
>>
>> If I have to write everything out in PHP code, I might as well use a more
>> sopisticated language.
>
>Because it requires short tags to be enabled, which can conflict with
>other languages. For instance, xml uses <?xml to indicate an xml block.
> And with short tags on, this would be detected as the start of a PHP
>statement.
>
>It's why most systems run with short tags disabled.
Duh, yes, I ranted about the wrong thing. I see that even my own server is
configured with short tags turned off.
I intended to rant about the ASP-style tags ( <%= ) which are, I believe,
usually enabled. But, somehow, the argument loses some of its impact when
its made a second time...
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Navigation:
[Reply to this message]
|