|
搜索看看︰ZendGuardLoader-php-5.3-Windows iis推荐
ZendGuardLoader-php-5.3-Windows iis推荐.zip - ZIP 压缩文件, 解包大小为 136,203 字节
PHP5.3、PHP5.4安装ZendOptimizer
http://www.veryhuo.com 烈火网 2012-09-27 投递稿件
现在很多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安装说明
1。下载Zend Guard Loader包。(官方地址:http://www.zend.com/en/products/guard/downloads)
Linux:
x86:http://downloads.zend.com/guard/ ... glibc23-i386.tar.gz
x64:http://downloads.zend.com/guard/ ... ibc23-x86_64.tar.gz
Windows:
http://downloads.zend.com/guard/ ... php-5.3-Windows.zip
2. 并提取ZendGuardLoader.so(Linux)或ZendLoader.dll(Windows)上传到服务器。
3. 加载ZendGuardLoader,配置PHP.INI
例子:
zend_extension=C:\web\PHP\ext\ZendLoader.dll
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
下面逐一说明:
注意windows版的只支持NTS(非线程安全)版的PHP5.3,即phpinfo中Thread Safety为disabled的!
在你的php.ini文件中添加以下行:
Linux和Mac OS X:zend_extension=<ZendGuardLoader.so的绝对路径>
Windows的非线程安全的:zend_extension=<ZendLoader.dll的绝对路径>
4. 添加下面这行加载ZendGuardLoader:
;启用加载编码脚本。默认开启
zend_loader.enable=1
5. 可选:配置ZendGuardLoader
;禁用检查授权(出于性能原因)
zend_loader.disable_licensing=0
;配置混淆水平 0 – 不支持混淆
zend_loader.obfuscation_level_support=3
;配置寻找授权文件的路径
zend_loader.license_path=
6. 如果你同时使用Zend debugger,请保证加载Zend guard Loader后再加载Zend debugger
7. 如果你同时使用Ioncube loader,请保证加载Ioncube loader后再加载Zend guard Loader
8. 重启Web服务。
如果在phpinfo中看到如下内容(不同的版本可能会有所不同):
This program makes use of the Zend Scripting Language Engine:Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
说明安装已经成功!
Zend Guard Loader installation instructions
-------------------------------------------
1. Extract the Zend Loader package.
2. Locate and extract the ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) that corresponds to your php version.
3. Add the following line to your php.ini file for loading the ZendGuardLoader:
Linux and Mac OS X: zend_extension=<full_path_to_ZendGuardLoader.so>
Windows non-thread safe: zend_extension=<full_path_to_ZendLoader.dll>
4. Add an aditional line to your php.ini for enabling ZendGuardLoader
; Enables loading encoded scripts. The default value is On
zend_loader.enable=1
5. Optional: following lines can be added your php.ini file for ZendGuardLoader configuration:
; Disable license checks (for performance reasons)
zend_loader.disable_licensing=0
; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled
zend_loader.obfuscation_level_support=3
; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide
zend_loader.license_path=
6. If you use Zend debugger as well, please make sure to load it after the Zend guard Loader
7. If you use ioncube loader, please make sure to load it before Zend guard Loader
8. Restart your Web server.
|
|