用php做了一个小项目,由于php是解释性语言,不能对代码进行保护,故需要对其进行加密。一个很好的工具就是zend公司的zend safeguard。其下载地址为:http://download.csdn.net/detail/wangshaner1/7031541
下载后,其接下来的步骤如下:
1、安装ZendSafeGuard-Evaluation-3.6.0-Windows-i386.exe
2、将ZendOptimizer-3.3.3文件夹直接拷贝到php的ext 文件夹下面
3、修改php.ini
加上:
[Zend]
zend_extension_ts = "D:\softBox\AppServ\php5\ext\ZendOptimizer-3.3.3\ZendExtensionManager.dll";根据实际路径修改
zend_extension_manager.optimizer_ts="D:\softBox\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0";根据实际路径修改
具体使用且看下图:
1、file->new project->输入项目名称->ok
2、调整好参数。各参数的含义如下(我也只是摸索,不尽正确):
(1)short tags:是否支持 ?>
(2)copy non-php files:是否复制非php文件喎?http://www.Bkjia.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+o6gzo6lhc3AgdGFnc6O6yse38dans9ZBU1C808PcPC9wPgo8cD6jqDSjqWRpc2FibGVkIHBocC1jb21wYXRpYmxlIGhlYWRlcqO6yse38dTaw7/Su7j2cGhwzsS8/seww+a808nPemVuZMu1w/ejrMj0srvE3L3izvajrNTyz9TKvsu1w/ehozwvcD4KPHA+o6g1o6l3b3JrIG9ubHkgd2l0aCBvdGhlciBlbmNvZGVkIGZpbGVkc6O6zfjJz8u1o7q808PczsS8/rjEtq/Wrrrzyse38cTcubu8zND4yrnTw6Gjsb7Iy9Hp1qTBy9K7z8KjrLeiz9ayu7ncyse38dGh1PHBy7TLz+6jrLjEtq/Wrrrzvvmyu8TcvMzQ+Mq508PBy6GjPC9wPgo8cD6jqDajqWFwcGVuZCBoZWFkZXIgaW5mb3JtYXRpb26jus601qqjrLG+yMvOtNGhPC9wPgo8cD6jqDejqXVzZSBQSFAgNSBFbmNvZGVyo7rKx7fxyrnTw3BocDW1xLzTw9w8L3A+CjxwPqOoOKOpT3B0aW1pemF0aW9uc6O608W7r7PMtsg8L3A+CjxwPqOoOaOpSWdub3JlIFBhdHRlcm5zo7q69sLUtcTSu9CpwdCx7TwvcD4KPHA+o6gxMKOpdGFyZ2V0IGRpcmVjdG9yeaO6vNPD3LrztcTOxLz+tcTK5LP2zsS8/rzQoaM8L3A+CjxwPqOoMTGjqUV4cGlyYXRpb24gT3B0aW9uc6O6uf3G2sqxvOQ8L3A+CjxwPqOoMTKjqUxpY2Vuc2luZyBTdXBwb3J0o7psaWNlbnNlzsS8/rXE1qez1rPMtsiho7TLz+6xvsjLxarBy9K7yc/O56OsvvnOtLrcusPFqrauo6zI1Lvhsai07aGjzrTN6rT90PihozwvcD4KPHA+PGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20140313/2014031308461997.jpg" alt="">