Using Eaccelerator to encrypt PHP programs _php tips

Source: Internet
Author: User
Use Eaccelerator to encrypt PHP programs


Copy Code code as follows:

#/usr/local/bin/encoder



will see a simple instructions to use:


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 fi Les (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 SCR IPT then ' target ' specifyes an output
file name. If you are 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



play a little bit should know how to use ...


uses encoder to encrypt the PHP code, creating another file, and you can also convert the entire directory, for example:
Copy Code code as follows:

# encoder Code-rcf-sphp-sinc-o code_encoded



This command will encode all the php/inc at the end of the code/directory and store it under Code_encoded,


at the same time, because of the designation-C this option, other formats, do not need to encode files, such as Jpg/gif/html/js,


will also be reproduced intact under code_encoded, so that you can directly use this directory to provide services.


option-r contains all subdirectories below

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.