drhwb470572 2013-10-24 15:00
浏览 51
已采纳

开始php脚本的符号

I re-installed and upgrade my ubuntu version from Ubuntu 13.04 to 13.10 then I installed apache2 and php. The problem is that I have php scripts that begins with <? but now these scripts only work if I change <? to <?php. How can I make that php work with <??

  • 写回答

1条回答 默认 最新

  • douzhaocheng4533 2013-10-24 15:02
    关注

    You need to set the option short_open_tag to 1 (true) in your php.ini and it should work fine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?