PHP示例教程,介绍如何在Linux中安装旋度扩展方法

PHP示例教程,介绍如何在Linux中安装旋度扩展方法
注释:一种是完全重新编译PHP,另一种方法是分别编译扩展库并以扩展的形式扩展它。下面是一个安装卷扩展的示例。

如果PHP已在系统中编译,则需要添加新的扩展名。
方法之一是重新编译PHP完全,和另一种方法是编写扩展库分别在扩展的形式扩大。

下面是安装旋度扩展的例子:

1、下载安装包卷。(我的PHP 4.4.4,下载最新的卷曲7.16不能用,最后下载7.14,所以注意版本问题)

复制代码代码如下所示:
配置
使

PHP requires the directory of curl to have include and lib directories, and include will have two files of easy.h and curl.h under include, and libcurl.a under lib.The files under the compiled include are available, but there is no in the Lib directory.Originally generated into the lib/.libs directory, so copy to the Lib directory

2,输入原始PHP的源目录。

复制代码代码如下所示:
CD Ext
CD曲
phpize
配置——用
使

的curl.so文件将phpdir / / /模块EXT卷曲/下产生。

3、复制curl.so文件扩展配置目录,修改php.ini

tag:安装扩展方法教程示例如何在

相关内容