Is it better to use the short PHP tag "<?" or the long PHP tag "<?php"? I've seen both used quite extensively, but I noticed that web hosts have to enable the short tag in php.ini. Is the short tag usually supported by web hosts, or should I use the long tag to be on the safe side?
NathanKP
I would definitely recommend using <?php. I've never had problems with it, but I will tell you I have had problems using the <? tag before.
Okay, thanks!
NathanKP
Quote from: akabugeyes on October 18, 2007, 11:41:52 AM
I would definitely recommend using <?php. I've never had problems with it, but I will tell you I have had problems using the <? tag before.
if you use <?
php.ini --->short_opentag=On
Quote from: mindphp on November 08, 2007, 02:18:09 PM
if you use <?
php.ini --->short_opentag=On
Thank you, mindphp. :)
I only ever use <?php for compatibility reasons, as not every server has short tags enabled(a.k.a what mindphp said lol...).
I mean config of php
Quote from: akabugeyes on October 18, 2007, 11:41:52 AM
I would definitely recommend using <?php. I've never had problems with it, but I will tell you I have had problems using the <? tag before.
Ty. :P