php 5.1.6 json_encode和codeigniter [英] php 5.1.6 json_encode and codeigniter

查看:134
本文介绍了php 5.1.6 json_encode和codeigniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个codeigniter应用程序使用json_encode在许多地方提供ajax数据...今天我了解到,服务器有php 5.1.6,它不支持这个方法(或json_decode)..我能做什么?请帮助。

Im building a codeigniter app which uses json_encode to provide ajax data in many places... today I learned that the server has php 5.1.6 which doesnt support this method (or json_decode).. what can I do?? please help.

推荐答案

我需要jquery网格的json_encode和json_decode。
我试过upgradephp,但json_encode did not似乎使用jquery网格,所以我从该文件中删除该函数,并添加这一个。 json_decode似乎工作很好,虽然。

I needed json_encode and json_decode for jquery grid. I tried upgradephp but json_encode didnt seem to work with jquery grid so I deleted that function from the file and added this one. json_decode seems to work just fine though.

这篇关于php 5.1.6 json_encode和codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆