Example of bcomplier Library encryption PHP program under CentOS

Source: Internet
Author: User


Some PHP files need to be encrypted in the project. Here we use the bcompiler Library in php PECL. You can use phpize to compile the dynamic library or directly use the pecl command (PHP-pear needs to be installed ).

The system is:

[Root @ li382-196 ~] # Cat/etc/centos-release
CentOS release 6.4 (Final)
[Root @ li382-196 ~] # Uname-I
X86_64

PHP version:

[Root @ li382-196 ~] # Php-v
PHP 5.3.28 (cli) (built: Dec 18 2013 19:46:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies

The first method is to use the pecl command:

1. Search for the php-pear installation package:

[Root @ li382-196 ~] # Yum search php53 | grep pear
Php53u-pear.noarch: PHP Extension and Application Repository framework

2. Install php53u-pear:

[Root @ li382-196 ~] # Yum install php53u-pear

3. After installation, you can test the pecl command:

[Root @ li382-196 ~] # Pecl help
Commands:
Build an Extension From C Source
Bundle Unpacks a Pecl Package
Channel-add Add a Channel
Channel-alias Specify an alias to a channel name
Channel-delete Remove a Channel From the List
Channel-discover Initialize a Channel from its server
Channel-info Retrieve Information on a Channel
Channel-login Connects and authenticates to remote channel server
Channel-logout Logs out from the remote channel server
Channel-update Update an Existing Channel
Clear-cache Clear Web Services Cache
Config-create Create a Default configuration file
Config-get Show One Setting
Config-help Show Information About Setting
Config-set Change Setting
Config-show Show All Sett

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.