百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> Centos6.4下bcomplier库加密PHP程序的例子
分享文章到:

Centos6.4下bcomplier库加密PHP程序的例子

发布时间:01/15 来源: 浏览: 关键词:


项目中需要对某些PHP文件进行加密,这里选用PHP PECL中的bcompiler库,可以使用phpize编译动态库或直接使用pecl命令(需要安装php-pear)。

系统是:

[root@li382-196 ~]# cat /etc/centos-release
CentOS release 6.4 (Final)
[root@li382-196 ~]# uname -i
x86_64

PHP版本为:

[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

第一种方法,使用pecl命令:

1. 搜索php-pear安装包:

[root@li382-196 ~]# yum search php53 | grep pear
php53u-pear.noarch : PHP Extension and Application Repository framework

2. 安装php53u-pear:

[root@li382-196 ~]# yum install php53u-pear

3. 安装完毕后,可以测试pecl命令:

[root@li382-196 ~]# pecl help
Commands:
build                  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

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有3人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板