使用eAccelerator加密PHP程序
更新時(shí)間:2008年10月03日 20:39:53 作者:
這款軟件的功能就是通過在內(nèi)存中緩存PHP文件從而加速PHP程序的執(zhí)行速度。由于MMCache的原作者被Zend挖走,MMCache的開發(fā)一直處于停滯狀態(tài)。而Eaccelerator卻借鑒了MMCache的優(yōu)點(diǎn)而一直在不斷的更新。
使用 eAccelerator 加密PHP程序
# /usr/local/bin/encoder
執(zhí)行后會(huì)看到簡單的使用說明:
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 去對(duì) PHP 程式加密編碼,會(huì)產(chǎn)生另外一個(gè)檔案,你也可以對(duì)整個(gè)目錄作轉(zhuǎn)換,例如:
# encoder code -rcf -sphp -sinc -o code_encoded
這個(gè)命令會(huì)把 code/ 目錄下所有的 php / inc 結(jié)尾的檔案作編碼,并存放到 code_encoded 下面,
同時(shí),由于指定了 -c 這個(gè)選項(xiàng),其他格式、不需編碼的檔案,如 jpg/gif/html/js 等,
也會(huì)原封不動(dòng)復(fù)制一份到 code_encoded 下面,這樣方便你直接以這個(gè)目錄來提供服務(wù)。
選項(xiàng) -r 含底下所有子目錄
復(fù)制代碼 代碼如下:
# /usr/local/bin/encoder
執(zhí)行后會(huì)看到簡單的使用說明:
復(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 去對(duì) PHP 程式加密編碼,會(huì)產(chǎn)生另外一個(gè)檔案,你也可以對(duì)整個(gè)目錄作轉(zhuǎn)換,例如:
復(fù)制代碼 代碼如下:
# encoder code -rcf -sphp -sinc -o code_encoded
這個(gè)命令會(huì)把 code/ 目錄下所有的 php / inc 結(jié)尾的檔案作編碼,并存放到 code_encoded 下面,
同時(shí),由于指定了 -c 這個(gè)選項(xiàng),其他格式、不需編碼的檔案,如 jpg/gif/html/js 等,
也會(huì)原封不動(dòng)復(fù)制一份到 code_encoded 下面,這樣方便你直接以這個(gè)目錄來提供服務(wù)。
選項(xiàng) -r 含底下所有子目錄
您可能感興趣的文章:
- php 提速工具eAccelerator 配置參數(shù)詳解
- 在Windows下編譯適用于PHP 5.2.12及5.2.13的eAccelerator.dll(附下載)
- PHP加速 eAccelerator配置和使用指南
- 使用 eAccelerator加速PHP代碼的方法
- 實(shí)現(xiàn)php加速的eAccelerator dll支持文件打包下載
- 用windows下編譯過的eAccelerator for PHP 5.1.6實(shí)現(xiàn)php加速的使用方法
- 使用 eAccelerator加速PHP代碼的目的
- win2003服務(wù)器之用Zend和eAccelerator在IIS6下同時(shí)加速
相關(guān)文章
php中動(dòng)態(tài)調(diào)用函數(shù)的方法
這篇文章主要介紹了php中動(dòng)態(tài)調(diào)用函數(shù)的方法,實(shí)例分析了php動(dòng)態(tài)函數(shù)的實(shí)現(xiàn)原理與具體實(shí)現(xiàn)步驟,需要的朋友可以參考下2015-03-03PHP 配置文件中open_basedir選項(xiàng)作用
open_basedir: 將用戶可操作的文件限制在某目錄下2009-07-07php頁面函數(shù)設(shè)置超時(shí)限制的方法
這篇文章主要介紹了php頁面函數(shù)設(shè)置超時(shí)限制的方法,可通過函數(shù)控制超時(shí)限制,也可通過修改php配置文件實(shí)現(xiàn)修改超時(shí)限制,需要的朋友可以參考下2014-12-12