make sure <? is enabled and not just <?php
if you use <?
php.ini --->short_opentag=On
John Boker
2009-02-20 05:34:42
make sure <? is enabled and not just <?php
if you use <?
php.ini --->short_opentag=On
You need to enable shortags in your php.ini:
short_opentag = on
However, even though Zend's examples use the open tag, for portability you really should use the full echo statement as not all webhosts allow for short_opentag. The short tag might save a bit of time typing but may actually be worse in the long run.
Thank you very much guys.
Unfortunately i don't have enough rep to vote up dragonmantank but I appreciate the extra info.
Updated :)