Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable json_encode in PHP

Could someone advise on how to enable the json_encode function in PHP?

I have a clean install of Centos 5.6 and have just installed Virtualmin.

Does anyone know the next steps to take?

like image 996
Rob Avatar asked Sep 06 '11 10:09

Rob


1 Answers

For php 7 I did this to install json (after hours of struggling):

yum install php70u-json
service nginx restart
service php-fpm restart
like image 151
d-_-b Avatar answered Oct 17 '22 01:10

d-_-b