有人可以建议如何在PHP中启用json_encode函数吗?
我有一个干净的Centos 5.6安装,刚刚安装了Virtualmin.
有谁知道接下来的步骤?
解决方法:
如在http://www.php.net/manual/en/json.requirements.php
Requirements
There is no installation needed to use these functions; they are part of the PHP core.
编辑:在comment也见过这个
On RHEL5/CentOS5 add the EPEL repository (07003).
After that, installation is as simple as:
sudo yum install php-pecl-json
不知道这是否适用于您的问题,我没有Centos服务器……
对于Ubuntu:
sudo aptitude install php5-json