Dezender的使用

解压到
D:\tools\other\phpsoft\Dezender

修改php5配置文件 ()
D:\tools\other\phpsoft\Dezender\PHP5\PHP5\php.ini

==========php.ini===========
zend_extension_manager.optimizer_ts="D:\tools\other\phpsoft\Dezender\Zend for PHP5\Zend for PHP5\Optimizer-3.3.0\"
zend_extension_ts="D:\tools\other\phpsoft\Dezender\Zend for PHP5\Zend for PHP5\ZendExtensionManager.dll"

==================================

把需要编译的文件copy to D:\tools\other\phpsoft\Dezender\PHP5\PHP5

php.exe main.func.php -c /tab /indent:1 /path:beifen

好了 这个时候生成
common.inc.de.php  就是正常的文件.


dezend下载地址:
http://dl.iteye.com/topics/download/c42e271c-02a1-3573-8dfa-8ab43bfa415c



关于批量反编译的方法(未验证):

方法一:

for /R %a in (*.php) do php -c c:\dezender %a

方法二:

fragment.batset filename=tcdezender.bat@echo off
set oldypath=%PATH%
path=%PATH%;c:\DeZenders\PHP5
path=%PATH%;c:\DeZenders\source
set PHP_DECODE_ROOT = c:
dir /s /b c:\DeZenders\source\*.php > filelist.txt
call main.batmain.bat@echo off
:START
copy fragment.bat + filelist.txt temp.txt > nul
type temp.txt | find “set filename=” > temp.bat
echo call process.bat >> temp.bat
call temp.bat
type temp.txt | find /v “set filename=” > filelist.txt
copy filelist.txt nul | find “0″ > nul
if errorlevel 1 goto START
process.bat@echo off
echo Processing “%filename%”
if %filename% == “” goto :end
php.exe -c c:\DeZenders\PHP5 “%filename%” /noexpire /replace
:end

你可能感兴趣的:(Dezend)