Install json extension under PHP5.1_PHP tutorial

WBOY
Release: 2016-07-13 17:54:22
Original
995 people have browsed it

Environment: centos 5.0,php 5.1.6

Because phpize is required, php-devel is installed. phpize provides a compilation environment for PHP extensions.
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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477967.htmlTechArticleEnvironment: centos 5.0, php 5.1.6 Because phpize is required, php-devel is installed. phpize provides a compilation environment for PHP extensions. wget http://pecl.php.net/get/json -O json-1.2.1.tgz tar -xf...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template