瀏覽單個文章
xs910203
Major Member
 

加入日期: Mar 2012
文章: 273
答案出爐...shinnlu大是對的!
引用:
作者shinnlu
看一下 php short open tag 的設定.
雖然不太可能啦。


問題出在php.ini

引用:
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag

short_open_tag = Off


我是copy了那份php.ini-production....
抓到快葛屁...

再次感謝各位前輩!
__________________
舊 2013-05-09, 12:05 PM #17
回應時引用此文章
xs910203離線中