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

PHP5.1下安装json扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:52:23
Original
1362 people have browsed it

     环境: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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template