PHP denying use of short hand “<?”

旧城冷巷雨未停 提交于 2019-11-28 01:26:22

You need to update your php.ini file.

Set short_open_tag = 1

See the PHP Manual

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!