現在很多PHP程序都需要ZendOptimizer環境,但是ZendOptimizer在PHP5.2之后已經被支持,那怎么辦,Zend也不會這么做,原來PHP5.3開始ZendOptimizer正式改為Zend Guard Loader。
Zend Guard Loader的發布,而且Zend Optimizer不會再更新,并且由于差異很大使用Zend Guard加密代碼時將提示你是否使用php5.3,如果使用5.3那么代碼就無法在php5.2上運行。
Zend Guard Loader安裝說明
下載Zend Guard Loader包
(官方地址:http://www.zend.com/en/products/guard/downloads)
Linux:
x86:http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
x64:http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
Windows:
http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-Windows.zip
并提取ZendGuardLoader.so(Linux)或ZendLoader.dll(Windows)上傳到服務器。
加載ZendGuardLoader,配置PHP.INI
例子:
下面逐一說明:
注意windows版的只支持NTS(非線程安全)版的PHP5.3,即phpinfo中Thread Safety為disabled的!
在你的php.ini文件中添加以下行:
添加下面這行加載ZendGuardLoader:
可選:配置ZendGuardLoader
如果你同時使用Zend debugger,請保證加載Zend guard Loader后再加載Zend debugger
如果你同時使用Ioncube loader,請保證加載Ioncube loader后再加載Zend guard Loader
重啟Web服務。
如果在phpinfo中看到如下內容(不同的版本可能會有所不同):
說明安裝已經成功!
以上所述就是本文的全部內容了,希望大家能夠喜歡
請您花一點時間將文章分享給您的朋友或者留下評論。我們將會由衷感謝您的支持!
新聞熱點
疑難解答