Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Don't want other peoples edits under my name, they can submit a new answer or a comment.
Source Link
Martin Fjordvald
  • 7.9k
  • 2
  • 32
  • 35

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

This can also be achieved in the specific nginx server block or location block where it's needed (rather than system wide):

fastcgi_param PHP_VALUE "short_open_tag=\"On\""; 

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

This can also be achieved in the specific nginx server block or location block where it's needed (rather than system wide):

fastcgi_param PHP_VALUE "short_open_tag=\"On\""; 

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

augments the php.ini answer with alternative nginx configuration directive as an option
Source Link

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

This can also be achieved in the specific nginx server block or location block where it's needed (rather than system wide):

fastcgi_param PHP_VALUE "short_open_tag=\"On\""; 

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.

This can also be achieved in the specific nginx server block or location block where it's needed (rather than system wide):

fastcgi_param PHP_VALUE "short_open_tag=\"On\""; 
Source Link
Martin Fjordvald
  • 7.9k
  • 2
  • 32
  • 35

Your templates probably use short opening tags <? or <?=$foo versus <?php or <?php echo $foo. This is turned off by default in PHP 5.3 (possibly earlier) so you have enable it in your php.ini file.