<?php is OK, but <? is not

Ryan Schmidt ryandesign at macports.org
Sun Jul 11 21:52:51 PDT 2010


On Jul 11, 2010, at 23:48, Daniel Terreros wrote:

> On Sun, Jul 11, 2010 at 9:46 PM, Bill Christensen wrote:
> 
>> Starting a php section with <?php is OK, but <? apparently is not.
> 
> Do you have short tags enabled?


Right, that feature is called short open tags. It's a setting in the php.ini. The new default php.ini files that come with the latest php5 are probably more restrictive than the ones that came with earlier PHPs. You may need to update your code, or change some settings back (though be aware of any security implications of doing so).


More information about the macports-users mailing list