Search code examples
phpphp-shorttags

"<?" not being rendered as PHP


I just inherited a code base from a previous developer and am in the process of getting things setup in my local LAMP vagrant box.

For some reason, the php code that is wrapped in <? is not being rendered. It renders code in <?php fine.

Is there a php.ini setting I need to adjust to enable the shorthand php declaration support?

Environment: Ubuntu 14.04 | PHP 5.5.9-1ubuntu4.5


Solution

  • You need to change your php.ini file, specifically short_open_tags.