Enable PHP short open tags via .htaccess

吃可爱长大的小学妹 提交于 2019-11-28 22:37:18

Try this

 <IfModule mod_php5.c>
   php_value short_open_tag 1
 </IfModule>

This would solve the problem

garethhallnz

For .htaccess it should be php_value short_open_tag 1 For an ini file it's short_open_tag=On.

If it doesn't work in the .htaccess then you could try to add you own php.ini in you site root. That said it's unlikely to work.

Simply put the server admin could have completely disabled this functionality and no matter what you add you will not be able to activate it. It's best you ask your host and save yourself the pain.

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