IIS7 + PHP + Zend - 不执行<=*pic*

Gau*_*tam 0 php iis rewrite zend-framework

我安装了IIS,Zend的PHP,IIS7,ReWrite模块.

我可以很好地执行PHP页面,甚至可以显示PHPINFO.

我在IIS上设置了一个Zend快速入门应用程序,当我打开它时,这就是我所看到的:

你可以从源头看到它没有执行<=部分.

知道需要改变什么吗?

替代文字http://www.gonrad.com/200902/zendiis.jpg

dra*_*ank 6

你需要在php.ini中启用短标记:

short_opentag = on
Run Code Online (Sandbox Code Playgroud)

但是,尽管Zend的示例使用了open标记,但为了便于携带,您确实应该使用完整的echo语句,因为并非所有的webhost都允许使用short_opentag.短标签可能会节省一些时间,但从长远来看可能实际上更糟糕.