You are here: Re: can php loops be continued throughout html « PHP Programming Language « IT news, forums, messages
Re: can php loops be continued throughout html

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]


Удаленная работа для программистов  •  Как заработать на 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

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