[英]IIS7 + PHP + Zend - Not executing <= *pic*
I have PHP, IIS7, ReWrite Module for IIS and Zend all installed. 我已经安装了PHP,IIS7,用于IIS的ReWrite模块和Zend。
I can execute PHP pages just fine, even got PHPINFO showing up. 我可以很好地执行PHP页面,甚至可以显示PHPINFO。
I setup a Zend quickstart app on IIS and when I open it this is what I see: 我在IIS上设置了Zend quickstart应用程序,当我打开它时,我看到的是:
You can see from the source that it's not executing the <= portions. 您可以从源代码中看到它没有执行<=部分。
Any idea what needs to change? 知道需要改变什么吗?
alt text http://www.gonrad.com/200902/zendiis.jpg 替代文字http://www.gonrad.com/200902/zendiis.jpg
You need to enable shortags in your php.ini: 您需要在php.ini中启用shortags:
short_opentag = on
However, even though Zend's examples use the open tag, for portability you really should use the full echo statement as not all webhosts allow for short_opentag. 但是,即使Zend的示例使用open标签,为实现可移植性,您也应该使用完整的echo语句,因为并非所有的Web主机都允许使用short_opentag。 The short tag might save a bit of time typing but may actually be worse in the long run.
短标签可能会节省一些输入时间,但从长远来看实际上可能会更糟。
make sure <? 确保<? is enabled and not just <?php
已启用,而不仅仅是<?php
if you use <? 如果您使用<?
php.ini --->short_opentag=On php.ini ---> short_opentag =开启
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.