Skip to main content
Inspiring
October 13, 2008
Question

PHP short tags?

  • October 13, 2008
  • 4 replies
  • 533 views
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
==================


This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Inspiring
October 13, 2008
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

Inspiring
October 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
Inspiring
October 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

Inspiring
October 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