|
|
#1 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
I use short tags in my code often because they are quite convenient. However it seems that the developers of PHP don't really like them and are considering removing them. Here is a good discussion on the matter:
http://stackoverflow.com/questions/2...eptable-to-use For purely philosophical reasons I try to obey strict xhtml when I format webpages. But I am unsure of the major philosophy behind short tag removal. Does anyone here have any opinions on the subject?
__________________
http://www.skepticize.me |
|
|
|
|
|
#2 |
|
Gold Member
![]() Join Date: Feb 2011
Location: Australia
Posts: 369
|
I'm pretty sure I have read that ages ago.
Never really made much since to me anyway, it's not like it's short hand that spans throughout the whole spectrum of code so you are only talking a handful of bits worth of data saved anyway. So in other words it's pointless, hence it's eventual removal.
__________________
Jason H. DHDdirect.com Domains - Hosting - Design |
|
|
|
|
|
#3 | |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Quote:
__________________
http://www.skepticize.me |
|
|
|
|
|
|
#4 |
|
Silver Member
![]() Join Date: Aug 2011
Posts: 100
|
If you've ever ported a website from a host that allows them to a host that does not then you realise the faff involved when making the website compliant.
It's safer just to use <?php just to be sure, 3 characters for the sake of compliance!
__________________
Mark R Wubbleyou - Web Design Newcastle A professional web design agency based in Newcastle upon Tyne servicing clients based throughout the U.K. Home spray tan machine - Landlord Reviews |
|
|
|
|
|
#5 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
Thanks for your comments! Philosophically they dont seem needed in the programming code. I think in the future I will do without them.
__________________
http://www.skepticize.me |
|
|
|
|
|
#6 |
|
Bronze Member
![]() |
It's mostly because of portability issues. I don't use them, but they are really useful for inline PHP since it maintains readability.
__________________
Nicolas Bouliane Web designer/developer in Granby, Québec |
|
|
|
|
|
#7 |
|
Silver Member
![]() Join Date: Aug 2011
Posts: 100
|
The worst part is if short tags are disabled on a configuration where they were previously allowed the server will sometimes output the script to the user as plain text. Never an ideal scenario.
__________________
Mark R Wubbleyou - Web Design Newcastle A professional web design agency based in Newcastle upon Tyne servicing clients based throughout the U.K. Home spray tan machine - Landlord Reviews |
|
|
|
|
|
#8 |
|
Silver Member
![]() Join Date: Jul 2011
Posts: 163
|
I noticed that when I installed PHP on an apache server, definitely not a secure situation!
__________________
http://www.skepticize.me |
|
|
|
|
|
#9 |
|
Silver Member
![]() Join Date: Mar 2011
Posts: 231
|
I really haven't grasped fully what you mean by short tags.
__________________
Custom Web Design for Businesses |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|