Page 1 of 1

problem with json_decode()

Posted: Wed Apr 21, 2010 4:20 am
by crrazy
hi all,

i had done a project in windows. (php version: 5.2.6)
it is successful in my local server.
when i move this to the linux server, it is showing an error.
Call to undefined function json_decode() in /var/www/html/...


what may be the reason for this?
is the json support related with the php version?
how can i resolve this?

anyone plz help...

thanks in advance,
cRaZy

Re: problem with json_decode()

Posted: Wed Apr 21, 2010 11:12 am
by requinix
crrazy wrote:is the json support related with the php version?
Yes. You need PHP >= 5.2 or the json PECL package.

Re: problem with json_decode()

Posted: Wed Apr 21, 2010 1:30 pm
by John Cartwright
..or read the user comments in the manual for alternative implementations.