最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Centos6.4下bcomplier库加密PHP程序的例子
时间:2022-06-30 21:22:17 编辑:袖梨 来源:一聚教程网
项目中需要对某些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
相关文章
- 鸣潮珂莱塔共鸣链怎么抽 珂莱塔共鸣链抽取推荐 09-18
- 三国志异闻录高速冰冻控制流怎么玩 高速冰冻控制流玩法教学 09-18
- 鸣潮卡提希娅值得抽吗 卡提希娅抽取建议 09-18
- 忘川风华录王安石怎么培养 王安石养成攻略 09-18
- 忘川风华录唐伯虎怎么培养 唐伯虎养成攻略 09-18
- 无限暖暖音乐季她的回旋我的向往任务怎么过 她的回旋我的向往任务攻略 09-18