problem with json_decode()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crrazy
Forum Newbie
Posts: 1
Joined: Wed Apr 21, 2010 4:10 am

problem with json_decode()

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: problem with json_decode()

Post by requinix »

crrazy wrote:is the json support related with the php version?
Yes. You need PHP >= 5.2 or the json PECL package.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: problem with json_decode()

Post by John Cartwright »

..or read the user comments in the manual for alternative implementations.
Post Reply