json_encode Does Not Exist
It’s broken because the JSON module for php isn’t installed and/or loaded! So, install it!
- Install the PHP Developer Package
yum install php-devel - Compile the JSON PHP Module with PEAR or PECL (PEAR Recommended)
PEAR » pear install pecl/json
PECL » pecl install json - Configure PHP to Load JSON PHP Module
Create a file json.ini in the directory /etc/php.d/ with this line:
extension=json.so
See, that wasn’t that hard, was it?
2 Responses to “json_encode Does Not Exist”
Leave a Reply




HB on January 6th, 2010
This problem. This problem right here. Too many headaches.
Nuri Hodges on November 8th, 2010
It got me, again