Encrypt PHP programs with Eaccelerator
Copy CodeThe code is as follows:
#/usr/local/bin/encoder
After execution, you will see simple instructions for use:
Copy CodeThe code is as follows:
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 is 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 the ' 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
A little play should know how to use ...
Using encoder to encrypt the PHP code will result in another file, and you can convert the entire directory, for example:
Copy CodeThe code is as follows:
# encoder Code-rcf-sphp-sinc-o code_encoded
This command encodes all php/inc end files in the code/directory and stores them under code_encoded.
At the same time, because you specify the-C option, other formats, files that do not need to be encoded, such as JPG/GIF/HTML/JS,
It will also be copied to code_encoded below, so that you can directly use this directory to provide services.
Option-R with all sub-directories below
http://www.bkjia.com/PHPjc/319473.html www.bkjia.com true http://www.bkjia.com/PHPjc/319473.html techarticle use Eaccelerator to encrypt the PHP program to copy the code code as follows: #/usr/local/bin/encoder you will see a simple instructions for use: Copy the code as follows: Usage:encoder [Options ...