Home > Article > Backend Development > eaccelerator Use eAccelerator to encrypt PHP programs
Use eAccelerator to encrypt PHP programs
Copy code The code is as follows:
# /usr/local/bin/encoder
Copy code Code 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 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' specifies an output
file name . If you encode directory or several files at once
then 'target' specifies 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
Copy the code The code is as follows:
# encoder code -rcf -sphp -sinc -o code_encoded
The above introduces eaccelerator and uses eAccelerator to encrypt PHP programs, including the content of eaccelerator. I hope it will be helpful to friends who are interested in PHP tutorials.