搞了半天是这个原因刚装完的PHP就不解析。。。不过奇怪的是C:\PHP下和C:\Windows下都没有php.ini的话反而可以解析,是默认值搞de吗?
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = on
http://www.ralix.cn/archives/16386
PHP5有一个设置:
short_open_tag=on
打开这个设置就能解析<?phpinfo();?>
没打开只能解析<?php phpinfo();?>
所以PHP4升级到PHP5时一定要把这个设置打开。不然discuz不能用。