------------------------------------------------ php
1. 下載 Zend Guard Loader 壓縮包。(官方下載地址:http://www.zend.com/en/products/guard/downloads) 安全
2. 解壓並提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),對應你的PHP版本。 服務器
3. 在你的 php.ini 文件添加下面一行,用來加載 Zend Guard Loader: 性能
Linux 和 Mac OS X: zend_extension = 完整路徑/ZendGuardLoader.so
Windows(非線程安全): zend_extension = 完整路徑/ZendLoader.dll spa
4. 在 php.ini 額外新增一行,啓用 Zend Guard Loader: 線程
zend_loader.enable = 1 debug
5. 可選:能夠在 php.ini 文件添加如下行到 Zend Guard Loader 配置位置: orm
;禁用許可證檢查(爲了性能的緣由)
zend_loader.disable_licensing = 0 文檔
;讓 Zend Guard Loader 支持混淆級別。級別在 Zend Guard 的官方詳細文檔。 0 - 不啓用混淆
zend_loader.obfuscation_level_support = 3 產品
;從這個路徑尋找Zend產品受權的產品許可證。欲瞭解更多有關如何建立一個許可證文件的信息,請參閱 Zend Guard 用戶指南.
zend_loader.license_path =
6. 若是您使用 Zend debugger,請確保加載 Zend guard Loader。
7. 若是您使用 ioncube loader,請務必在它以前加載 Zend guard Loader。
8. 從新啓動Web服務器。
總結一下,在php.ini中加的語句以下:
【Linux 和 Mac OS X環境下】
zend_extension="/usr/lib/php/modules/ZendGuardLoader.so" (替換成本身的ZendGuardLoader.so路徑)
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
【Windows環境下】 zend_extension="c:/php/ZendLoader.dll" (替換成本身的ZendGuardLoader.so路徑) zend_loader.enable=1 zend_loader.disable_licensing=0 zend_loader.obfuscation_level_support=3