1

I'm trying to configure nginx with shorthand open and close tags.

Currently the following code works for example:

<?php include('this.php'); ?>

But this doesn't:

<? include('this.php'); ?>

Is there a way to configure this so it works either way?

1
  • Fix the code. Short open tags are not recommended as they conflict with XML. Sep 4, 2013 at 16:33

2 Answers 2

2

set short_open_tag = On in php.ini and restart web servers

0

You must enable open short tag in the php.ini

short_open_tag = On

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .