Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php.ini: what i must change, to write <? instead <?php?

Tags:

php

in my local hosting the script doesn't work, if i wrote <? instead of <?php.

what i must change in php.ini to correct it?

Thanks

like image 854
Simon Avatar asked Aug 02 '10 10:08

Simon


2 Answers

http://php.net/manual/en/ini.core.php

short_open_tag

Is the property you seek.

like image 185
bisko Avatar answered Sep 21 '22 00:09

bisko


It is:

short_open_tag

Make sure to read:

  • PHP Short Open Tag: Convenient Shortcut or Short Changing Security?
like image 44
Sarfraz Avatar answered Sep 20 '22 00:09

Sarfraz