downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Runtime Configuration> <Requirements
Last updated: Fri, 20 Nov 2009

view this page in

Installation

There is no installation needed to use these functions; they are part of the PHP core.



add a note add a note User Contributed Notes
Installation
dmitryzayats at NOSPAM dot yahoo dot com
20-Nov-2009 03:06
Installation steps on CentOs 5.3 include

# yum install php-devel
# yum install php-pear
# yum install gcc
# pear install pecl/json

# cd /etc/php.d
# echo "extension=json.so" > json.ini
# service httpd restart

After that phpinfo() would output

json support     enabled
json version     1.2.1
dave at davidhbrown dot us
20-Jan-2009 10:24
On one server I use (FreeBSD 6.3; PHP 5.2.6 as module in Apache 2.2.10), PHP was compiled with the '--disable-all' configuration option. Consequently, there exists a secondary configuration file -- /usr/local/php5/etc/extensions.ini -- in which the line

; extension=json.so

must be uncommented (delete the semicolon) and Apache restarted for these functions to be available.

Runtime Configuration> <Requirements
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites