PHP

PHP扩展开发和编译

1.开发扩展

2.编译使用扩展

// 把扩展目录复制到php的扩展目录下,打开扩展目录
phpize
// 编译配置
./configure --enable-hello --with-php-config=/www/server/php/71/bin/php-config
// 编译安装
make && make install
// 添加扩展,在ini文件中添加扩展配置


评论 0

还没有评论,来说两句吧。

验证码

登录后即可评论。评论需要填写验证码。