使用eAccelerator加密PHP程序
更新時(shí)間:2008年10月03日 20:39:53 作者:
這款軟件的功能就是通過(guò)在內(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ì)看到簡(jiǎn)單的使用說(shuō)明:
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è)目錄來(lái)提供服務(wù)。
選項(xiàng) -r 含底下所有子目錄
復(fù)制代碼 代碼如下:
# /usr/local/bin/encoder
執(zhí)行后會(huì)看到簡(jiǎn)單的使用說(shuō)明:
復(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è)目錄來(lái)提供服務(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下編譯過(guò)的eAccelerator for PHP 5.1.6實(shí)現(xiàn)php加速的使用方法
- 使用 eAccelerator加速PHP代碼的目的
- win2003服務(wù)器之用Zend和eAccelerator在IIS6下同時(shí)加速
相關(guān)文章
基于php雙引號(hào)中訪問(wèn)數(shù)組元素報(bào)錯(cuò)的解決方法
下面小編就為大家分享一篇基于php雙引號(hào)中訪問(wèn)數(shù)組元素報(bào)錯(cuò)的解決方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-02-02
解析WordPress中函數(shù)鉤子hook的作用及基本用法
這篇文章主要介紹了解析WordPress中函數(shù)鉤子hook的作用及基本用法,hook是WordPress中調(diào)用函數(shù)的重要用法,也是插件開發(fā)的基礎(chǔ),需要的朋友可以參考下2015-12-12
在html文件中也可以執(zhí)行php語(yǔ)句的方法
這篇文章主要介紹了在html文件中也可以執(zhí)行php語(yǔ)句的方法,需要的朋友可以參考下2015-04-04
php實(shí)現(xiàn)快速對(duì)二維數(shù)組某一列進(jìn)行組裝的方法小結(jié)
這篇文章主要介紹了php實(shí)現(xiàn)快速對(duì)二維數(shù)組某一列進(jìn)行組裝的方法,涉及PHP數(shù)組遍歷、轉(zhuǎn)換、拆分等相關(guān)操作技巧,需要的朋友可以參考下2019-12-12
PHP學(xué)習(xí)筆記之三 數(shù)據(jù)庫(kù)基本操作
本文介紹最基本最實(shí)用的數(shù)據(jù)庫(kù)操作。首先簡(jiǎn)單復(fù)習(xí)下MySQL的使用方法,并且建好一張表備用。MySQL在Linux系統(tǒng)上一般都是裝好的,在win下安裝也很簡(jiǎn)單,不多做介紹。2011-01-01
記錄PHP錯(cuò)誤日志 display_errors與log_errors的區(qū)別
錯(cuò)誤回顯,一般常用語(yǔ)開發(fā)模式,但是很多應(yīng)用在正式環(huán)境中也忘記了關(guān)閉此選項(xiàng)。錯(cuò)誤回顯可以暴露出非常多的敏感信息,為攻擊者下一步攻擊提供便利。推薦關(guān)閉此選項(xiàng)2012-10-10
如何在Mac上通過(guò)docker配置PHP開發(fā)環(huán)境
這篇文章介紹的內(nèi)容是關(guān)于Mac上通過(guò)docker配置PHP開發(fā)環(huán)境,有著一定的參考價(jià)值,現(xiàn)在分享給大家,有需要的朋友可以參考一下。2021-05-05

