用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="">