I'm actually getting this error at the server:
Warning: json_encode() expects exactly 1 parameter, 2 given
At the localhost it works perfectly. So i think that the problem is that the PHP version of the server is 5.2.
Is there a solution? Or another way to do it?
-
could this be your problem? stackoverflow.com/questions/1515925/problem-with-json-encodeAlbara– Albara2013年11月20日 12:58:22 +00:00Commented Nov 20, 2013 at 12:58
-
Warning: PHP 5.2 was declared end-of-life nearly four years ago, and has not had any updates since then, including security updates. It is known to be insecure and nobody should be running a production server with it today in 2013. You should contact the administrator of your server and ask why it hasn't been upgraded in all that time.Spudley– Spudley2013年11月20日 13:26:14 +00:00Commented Nov 20, 2013 at 13:26
-
it's a free server... thanks anyway!Anfuca– Anfuca2013年11月20日 13:38:29 +00:00Commented Nov 20, 2013 at 13:38
-
I just resolved the problem using (float) into the array. I can't resolve the question yet because my low reputation Thanks for all!Anfuca– Anfuca2013年11月20日 13:40:11 +00:00Commented Nov 20, 2013 at 13:40
lang-php