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

search for in the

Configurazione di Runtime> <Requisiti
[edit] Last updated: Fri, 17 May 2013

view this page in

Installazione

As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default.

Informazioni per l'installazione di questa estensione PECL possono essere trovate nel capitolo del manuale intitolato Installazione delle estensioni PECL. Informazioni aggiuntive come nuove release, download, file sorgenti, informazioni del manutentore e un CHANGELOG possono essere trovate qui: » http://pecl.php.net/package/json



Configurazione di Runtime> <Requisiti
[edit] Last updated: Fri, 17 May 2013
 
add a note add a note User Contributed Notes Installazione - [4 notes]
up
3
dave at davidhbrown dot us
4 years ago
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.
up
-1
haebler at gmail dot com
2 years ago
On RHEL5/CentOS5 add the EPEL repository (http://fedoraproject.org/wiki/EPEL).

After that, installation is as simple as:

    sudo yum install php-pecl-json
up
-1
cko at audaxis dot com
2 years ago
On gentoo, need the USE flag "json" to compile into php
up
-5
dmitryzayats at NOSPAM dot yahoo dot com
3 years ago
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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites