Use eAccelerator to encrypt PHP programs
Copy codeThe Code is as follows: #/usr/local/bin/encoder
After execution, you can see the following simple instructions: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 ")
-
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
I should know how to use it for a moment...
Using encoder to encrypt the PHP program will generate another file. You can also convert the entire directory, for example:Copy codeThe code is as follows: # encoder code-rcf-sphp-sinc-o code_encoded
This command will encode all the php/inc files in the code/directory and put them under code_encoded,
Besides, because the-c option is specified, files in other formats, such as jpg, gif, html, and js, do not need to be encoded,
It will also copy a copy to code_encoded, so that you can directly use this directory to provide services.
Option-r contains all subdirectories