Use eAccelerator to encrypt PHP project_php tutorial-PHP Tutorial

Source: Internet
Author: User
Use eAccelerator to encrypt the PHP program. Use eAccelerator to encrypt PHP program Copy code: # After usrlocalbinencoder is executed, you will see simple instructions: Copy code: Usage: encoder [options use eAccelerator to encrypt PHP program

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 eAccelerator encryption PHP program code is as follows: #/usr/local/bin/encoder after execution, you will see simple instructions: The code is as follows: Usage: encoder [options...

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.