PHP denying use of short hand “<?”
-
20-09-2019 - |
Question
I just installed php 5.3.0 and it won't run php scripts utilizing short open tags like <?, only <?PHP.
Solution
OTHER TIPS
That's because it's simply a bad practice. I suggest re-converting all your scripts to use <?php
. If you're lazy, you can use a find and replace, if you have access to powerful command lines like bash you can use sed to do this for you.
http://us2.php.net/manual/en/ini.core.php
you need to
ini_set("short_open_tag", 1)
or adjust your systems php.ini file.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow