PHP denying the use of short hand "<?"

I just installed php 5.3.0 and it will not run php scripts using short open tags like <?, only <? PHP

+4
source share
3 answers

You need to update the php.ini file.

Set short_open_tag = 1

See PHP Manual

+17
source

This is because it is just bad practice. I suggest converting all your scripts to use <?php . If you're lazy, you can use search and replace, if you have access to powerful commands like bash, you can use sed to do this for you.

+6
source

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

you need

 ini_set("short_open_tag", 1) 

or edit your php.ini system file.

+4
source

All Articles