Re: Re[2]: [PHP] Is echo tag reasonably portable?
| From: | Richard Lynch | Date: | Tue, 15 Nov 2005 17:40:12 +0000 |
| Subject: | Re: Re[2]: [PHP] Is echo tag reasonably portable? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225848@lists.php.net to get a copy of this message | ||
On Tue, November 15, 2005 11:35 am, Richard Davey wrote:
> Tuesday, November 15, 2005, 4:34:28 PM, you wrote:
>> so how many people actually _need_ to write portable code? ok so
>> many you are starting a project which will become a runaway success
>> but until it starts receiving alot of attention use of
>> short-open-tags is probably not your biggest issue either.
>
> heh :) I have to admit I was thinking the same thing. I use short-tags
> and always enable them, I specifically like the <?=$blah alias.
>
> I cannot see any more security risks from allowing <? as from allowing
> <?php. If you're letting direct PHP code injection into your scripts,
> then you've got bigger things to worry about than if the hacker will
> use a short-tag or not!
I don't really mind about <? versus <?php, cuz I can cope either way.
I even find <?php a bit more readable, for some reason.
But I sure wish <?= would work even without short_tags on.
As I understand it, <? needed to go away because of XHTML, no?
But is <?= a valid beginning for XML/XHTML?
If not, why did it get lumped in with short_tags?
[shrug]
--
Like Music?
http://l-i-e.com/artists.htm