標籤:style http io color ar sp div on html
因一個網站功能,昨天升級了伺服器的php到5.3.27,用的是wdlinux的lanmp,安裝之後啟動apache或者php -v會報錯:
Cannot load Zend Extension Manager - it was built with configuration 1.2.0,
而且,所有的*.tpl.php都不正常,比如index.tpl.php頁面裡有如下指令碼:
PHP code ?
| 12345 |
<frame src="<?=u(‘index‘,‘top‘)?>" noresize="noresize" frameborder="no" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" /> <frameset cols="200,*" id="frame"> <frame src="<?=u(‘index‘,‘left‘)?>" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="main" /> <frame src="<?=u($_GET[‘go_mod‘],$_GET[‘go_act‘])?>" name="main" noresize="noresize" marginwidth="0" marginheight="0" frameborder="no" scrolling="yes" target="_self" /> </frameset> |
頁面開啟全是404,查看源碼之後,發現地址是http://xx.xx.xx/xx/xx/<?=u(‘index‘,‘left‘)?>,php指令碼好像沒運行
經過百度和Google,重新安裝了ZendGuardLoader,並注釋掉了老的zend:
Plain Text code ?
| 1234567 |
;zend_extension_manager.optimizer=/www/wdlinux/Zend/lib/Optimizer-3.3.3;zend_extension_manager.optimizer_ts=/www/wdlinux/Zend/lib/Optimizer_TS-3.3.3;zend_optimizer.version=3.3.3;zend_extension=/www/wdlinux/Zend/lib/ZendExtensionManager.so;zend_extension_ts=/www/wdlinux/Zend/lib/ZendExtensionManager_TS.so<span style="color: #FF0000;">zend_extension = /www/wdlinux/Zend/lib/ZendGuardLoader.sozend_loader.enable = 1</span> |
重啟apache,還是無效,求助該怎麼辦
-
--------解決方案--------
-
php.ini
short_open_tag = On
乾脆升到 php5.4.21
無論 short_open_tag 怎麼設定都支援 <?= ?>
-
--------解決方案--------
-
引用 1 樓 xuzuning 的回複:
php.ini
short_open_tag = On
乾脆升到 php5.4.21
無論 short_open_tag 怎麼設定都支援 <?= ?>
非常感謝,解決了,結貼給你
升級到php5.3.27之後, *.tpl.php全部失效