使用eAccelerator加密PHP程序

使用 eAccelerator 加密PHP程序
<div class="codetitle"><a style="CURSOR: pointer" data="1282" class="copybut" id="copybut1282" onclick="doCopy('code1282')"> 代码如下:

<div class="codebody" id="code1282">
# /usr/local/bin/encoder

执行后会看到简单的使用说明:
<div class="codetitle"><a style="CURSOR: pointer" data="92996" class="copybut" id="copybut92996" onclick="doCopy('code92996')"> 代码如下:
<div class="codebody" id="code92996">
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

稍微玩一下应该就知道怎 用了...
使用 encoder 去对 PHP 程式加密编码,会产生另外一个档案,你也可以对整个目录作转换,例如: <div class="codetitle"><a style="CURSOR: pointer" data="70970" class="copybut" id="copybut70970" onclick="doCopy('code70970')"> 代码如下:
<div class="codebody" id="code70970">
# encoder code -rcf -sPHP -sinc -o code_encoded

这个命令会把 code/ 目录下所有的 PHP / inc 结尾的档案作编码,并存放到 code_encoded 下面,
同时,由于指定了 -c 这个选项,其他格式、不需编码的档案,如 jpg/gif/html/js 等,
也会原封不动复制一份到 code_encoded 下面,这样方便你直接以这个目录来提供服务。
选项 -r 含底下所有子目录

PHP加密加密加密

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...