Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

php: "short_open_tag = On" not working

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.

I have already put:

"short_open_tag = On"

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I had the same problem recently after upgrading from PHP 5.3.18 to PHP 5.5.9..

I realized that for some reason, short_open_tag was appearing in my php.ini file twice.

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...