Home >php教程 >php手册 >PHP5.1下安装json扩展

PHP5.1下安装json扩展

WBOY
WBOYOriginal
2016-06-13 10:52:231336browse

     环境:centos 5.0 ,php 5.1.6

因为需要phpize,所以安装php-devel。phpize 是为php扩展提供编译环境。
 wget http://pecl.php.net/get/json -O json-1.2.1.tgz
tar -xf json-1.2.1.tgz
cd json-1.2.1
phpize
./configure
make
make install
echo "; Enable json extension module" >> /etc/php.d/json.ini
echo "extension=json.so" >/etc/php.d/json.ini

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP转换国际编码Next article:php判断数组是否有序