Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
609 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...