The function of this software is to accelerate the execution speed of PHP programs by caching PHP files in the memory. Since the original author of MMCache was dug by Zend, MMCache development has been stuck. However, the Eaccelerator has been constantly updated based on the advantages of MMCache. Use eAccelerator to encrypt PHP programs
The code is as follows:
#/Usr/local/bin/encoder
After execution, you can see the following simple instructions:
The 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:
The 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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service