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

search for in the

実行時設定> <要件
[edit] Last updated: Fri, 25 May 2012

view this page in

インストール手順

PHP 5.2.0 以降、JSON 拡張モジュールはデフォルトで PHP に組み込まれます。

この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場所にあります。 » http://pecl.php.net/package/json



実行時設定> <要件
[edit] Last updated: Fri, 25 May 2012
 
add a note add a note User Contributed Notes インストール手順
haebler at gmail dot com 22-Jan-2011 02:45
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
cko at audaxis dot com 19-Oct-2010 12:11
On gentoo, need the USE flag "json" to compile into php
dmitryzayats at NOSPAM dot yahoo dot com 20-Nov-2009 02: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 19-Jan-2009 09: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.

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