php:"short_open_tag = On";不工作 [英] php: "short_open_tag = On" not working
问题描述
我最近在计算机上安装了Win8.然后我用php 5.4安装了wamp 2.2,但我无法使短标签起作用.
I have recently installed Win8 on my computer. Then I instaled wamp 2.2 with php 5.4 and I am unable to make short tag work.
我已经放了:
"short_open_tag =开启"
"short_open_tag = On"
进入php.ini文件,我确信apache正在加载正确的文件,因为phpinfo()
中已加载的配置文件"的路径是好的.
into the php.ini file and I am sure that apache is loading the right file because the path to "Loaded Configuration File" in phpinfo()
is good.
如果有任何建议,我将感到高兴.谢谢.
I would be glad for any piece of advice. Thanks.
推荐答案
从PHP 5.3.18
升级到PHP 5.5.9.
后,我最近遇到了同样的问题.
I had the same problem recently after upgrading from PHP 5.3.18
to PHP 5.5.9.
.
我意识到由于某种原因,short_open_tag
两次出现在我的php.ini文件中.
I realized that for some reason, short_open_tag
was appearing in my php.ini file twice.
如果您进行了查找以找到php.ini
文件的该部分,请尝试继续查找以查看是否存在另一个实例.
If you did a find to get to that part of your php.ini
file, try continuing the find to see if there is another instance.
这篇关于php:"short_open_tag = On";不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!