|
復(fù)制代碼 代碼如下:
# /usr/local/bin/encoder
執(zhí)行后會看到簡單的使用說明:
復(fù)制代碼 代碼如下:
Usage: encoder [options] source_file_name
encoder [options] source_file_name...
encoder [options] source_directory_name...
Options:
-s suffix
encode files only with following suffix (default is "php")
-a
encode all files (no by default)
-l
follow symbolic links (no by default)
-r
encode directories recursively (no by default)
-c
copy files those shouldn't be encoded (no by default)
-f
overwrite existing files (no by default)
-w
exclude check for eaccelerator_load() and subsequent warning
-o target
If you encode only one script then 'target' specifyes an output
file name. If you encode directory or several files at once
then 'target' specifyes an output directory name.
Examples:
encoder some_file.php
encoder some_file.php -o some_encoded_file.php
encoder *.php -o some_dir
encoder ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y
稍微玩一下應(yīng)該就知道怎 用了...
使用 encoder 去對 php 程式加密編碼,會產(chǎn)生另外一個(gè)檔案,你也可以對整個(gè)目錄作轉(zhuǎn)換,例如: 復(fù)制代碼 代碼如下:
# encoder code -rcf -sphp -sinc -o code_encoded
這個(gè)命令會把 code/ 目錄下所有的 php / inc 結(jié)尾的檔案作編碼,并存放到 code_encoded 下面,
同時(shí),由于指定了 -c 這個(gè)選項(xiàng),其他格式、不需編碼的檔案,如 jpg/gif/html/js 等,
也會原封不動復(fù)制一份到 code_encoded 下面,這樣方便你直接以這個(gè)目錄來提供服務(wù)。
選項(xiàng) -r 含底下所有子目錄
php技術(shù):使用eAccelerator加密PHP程序,轉(zhuǎn)載需保留來源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時(shí)間聯(lián)系我們修改或刪除,多謝。