Zend Guard Loader的配置与安装

2014-04-16 09:17:26  雅事达网络 我有话说(184人参与)
PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代 ------------------------------------------------ 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 4. 在 php.ini 额外新增一行,启用 Zend Guard Loader: zend_loader.enable = 1 5. 可选:可以在 php.ini 文件添加以下行到 Zend Guard Loader 配置位置: ;禁用许可证检查(为了性能的原因) 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 zend_loader.license_path="/web/license/sample.zl" (替换成自己的zl文件路径) 【Windows环境下】 zend_extension="c:/php/ZendLoader.dll" (替换成自己的ZendGuardLoader.so路径) zend_loader.enable=1 zend_loader.disable_licensing=0 zend_loader.obfuscation_level_support=3 zend_loader.license_path="c:/php/sample.zl" (替换成自己的zl文件路径)
分享到:

已有37条评论,共184人参与

还没有评论
最新评论刷新
建海666
这里是博客评论区,请登录
32分钟前
果果明赫
这里是博客评论区,请登录
60分钟前