I am using PHP 5.1.6 and wamp5 version 1.6.5. It does not support JSON
so I am getting this error:
Fatal error: Call to undefined function json_encode() in C:\wamp\www\myproject\application\controllers\auth\auth.php on line 142
How can I solve that please help me out.
Create your own function. You can copy from frameworks who provides json encode or decode. One of them is
Yii
. Available here. However it is better to upgrade PHP. You can copy the code and do: