|
[color=rgb(95, 95, 95)]PHP 5.3 下,Zend Optimizer 已经被全新的 Zend Guard Loader 取代 [color=rgb(95, 95, 95)]------------------------------------------------ [color=rgb(95, 95, 95)]2. 解压并提取 ZendGuardLoader.so(Linux)或 ZendLoader.dll(Windows),对应你的PHP版本。 [color=rgb(95, 95, 95)]3. 在你的 php.ini 文件添加下面一行,用来加载 Zend Guard Loader: [color=rgb(95, 95, 95)]Linux 和 Mac OS X: zend_extension = 完整路径/ZendGuardLoader.so
Windows(非线程安全): zend_extension = 完整路径/ZendLoader.dll [color=rgb(95, 95, 95)]4. 在 php.ini 额外新增一行,启用 Zend Guard Loader: [color=rgb(95, 95, 95)] zend_loader.enable = 1 [color=rgb(95, 95, 95)]5. 可选:可以在 php.ini 文件添加以下行到 Zend Guard Loader 配置位置: [color=rgb(95, 95, 95)];禁用许可证检查(为了性能的原因)
zend_loader.disable_licensing = 0 [color=rgb(95, 95, 95)] ;让 Zend Guard Loader 支持混淆级别。级别在 Zend Guard 的官方详细文档。 0 - 不启用混淆
zend_loader.obfuscation_level_support = 3[color=rgb(95, 95, 95)] ;从这个路径寻找Zend产品授权的产品许可证。欲了解更多有关如何创建一个许可证文件的信息,请参阅 Zend Guard 用户指南.
zend_loader.license_path =[color=rgb(95, 95, 95)]6. 如果您使用 Zend debugger,请确保加载 Zend guard Loader。 [color=rgb(95, 95, 95)]7. 如果您使用 ioncube loader,请务必在它之前加载 Zend guard Loader。 [color=rgb(95, 95, 95)]8. 重新启动Web服务器。 [color=rgb(95, 95, 95)]总结一下,在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
[color=rgb(95, 95, 95)]【Windows环境下】
zend_extension="c:/php/ZendLoader.dll" (替换成自己的ZendGuardLoader.so路径)
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
[backcolor=rgb(255, 0, 255)]推荐软件:
zend guard 5.5正式开源版 支持php5.2/5.3加密
https://www.cgzz8.cn/t-10650-1-1.html
(出处: 草根吧)
zend guard 6.0正式开源版 支持php5.3/5.4加密 DZ建站学习研究分享
https://www.cgzz8.cn/t-10652-1-1.html
(出处: 草根吧)
|