Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP short tags?

LEGEND ,
Oct 13, 2008 Oct 13, 2008
What is the reason for not using them? Is there a PHP version/support
issue? Or is it just that the support for them must be enabled on the
server, making your code less portable?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


TOPICS
Server side applications
530
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2008 Oct 13, 2008
On 13 Oct 2008 in macromedia.dreamweaver.appdev, Murray *ACE* wrote:

> What is the reason for not using them? Is there a PHP version/support
> issue? Or is it just that the support for them must be enabled on the
> server, making your code less portable?

AFAIK, that's it - it has to be enabled. I just tested a fairly recent
installation of PHP 5.2.6, and it's enabled. That may not be the case by
default in PHP 6, although it could take a good long while before that's
an issue. Look at how long it's taking for PHP 4 to vanish.

The other reason is avoiding ambiguity. XML, for example, also uses
"<?" as an opening tag. There are probably others, too. And who knows
when Microsoft will re-purpose <? for some non-standard use?

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/contact.php
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2008 Oct 13, 2008
Yeah - I was reading about it on php.net, and was surprised to see that you
can even use 'ASP-like' tags, e.g.,

<% echo "who would have thought?" %>

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Joe Makowiec" <makowiec@invalid.invalid> wrote in message
news:Xns9B364F6955041makowiecatnycapdotrE@216.104.212.96...
> On 13 Oct 2008 in macromedia.dreamweaver.appdev, Murray *ACE* wrote:
>
>> What is the reason for not using them? Is there a PHP version/support
>> issue? Or is it just that the support for them must be enabled on the
>> server, making your code less portable?
>
> AFAIK, that's it - it has to be enabled. I just tested a fairly recent
> installation of PHP 5.2.6, and it's enabled. That may not be the case by
> default in PHP 6, although it could take a good long while before that's
> an issue. Look at how long it's taking for PHP 4 to vanish.
>
> The other reason is avoiding ambiguity. XML, for example, also uses
> "<?" as an opening tag. There are probably others, too. And who knows
> when Microsoft will re-purpose <? for some non-standard use?
>
> --
> Joe Makowiec
> http://makowiec.net/
> Email: http://makowiec.net/contact.php

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2008 Oct 13, 2008
.oO(Murray *ACE*)

>Yeah - I was reading about it on php.net, and was surprised to see that you
>can even use 'ASP-like' tags, e.g.,
>
><% echo "who would have thought?" %>

These ASP-like tags will be removed from PHP 6. Short open tags will be
left in, but disabled by default.

Micha
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2008 Oct 13, 2008
LATEST
Thank goodness. There is justice in the world.... 8)

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Michael Fesser" <netizen@gmx.de> wrote in message
news:jsu6f493k4ujo7ldf1cluoe5q1f8vnrnnb@4ax.com...
> .oO(Murray *ACE*)
>
>>Yeah - I was reading about it on php.net, and was surprised to see that
>>you
>>can even use 'ASP-like' tags, e.g.,
>>
>><% echo "who would have thought?" %>
>
> These ASP-like tags will be removed from PHP 6. Short open tags will be
> left in, but disabled by default.
>
> Micha

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines