php形成json语句,多出前面一句,怎么去掉! JSONphpPHP 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把相关程序文件转存为无bom的utf8文件就OK了。方法最好用新建无bom文件,把代码复制过去,再保存。 json输出前加入header('Content-type: application/json');试试~ include "./mobile/sql.php"; 这个里的吧 估计是 include "./mobile/sql.php"; 文件生成的吧,贴出来看看。 header("Content-type:application/json;charset=utf-8") 你肯定有include的页面里加这句了 咋去掉的啊 我也出现这种情况了 HTTP/1.1 200 OKDate: Fri, 18 Apr 2014 09:00:59 GMTServer: Microsoft-IIS/6.0X-Powered-By: ASP.NETX-AspNet-Version: 4.0.30319Content-Length: 2352Cache-Control: privateContent-Type: application/json; charset=utf-8{"body":{"item":[{"BuyPriceoff":0,"BuyTime":"未确定","CityId":420100,"CityName":"武汉","Content":"白色的年前提车","CountyId":420105,"CountyName":"汉阳","CreateTime":"2014-02-06 11:35:27","DealerId":11569,"HandleTime":"2014-01-07 11:35:28","Id":23010786,"Name":"张国雄","OrderType":0,"Phone":"18108624658","ProvinceId":420000,"ProvinceName":"湖北","ReDealerId":11569,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":15737,"SpecName":"雪铁龙C4L 2013款 1.8L 手动劲智版","State":1},{"BuyPriceoff":0,"BuyTime":"","CityId":140100,"CityName":"太原","Content":"","CountyId":140105,"CountyName":"小店","CreateTime":"2014-02-06 11:34:35","DealerId":6752,"HandleTime":"2014-01-07 11:34:36","Id":23010726,"Name":"栗","OrderType":1,"Phone":"15386885719","ProvinceId":140000,"ProvinceName":"山西","ReDealerId":6752,"SeriesId":792,"SeriesName":"雪铁龙C5","SpecId":17043,"SpecName":"雪铁龙C5 2013款 2.0L 自动悦享型","State":1},{"BuyPriceoff":0,"BuyTime":"","CityId":440300,"CityName":"深圳","Content":"","CountyId":0,"CountyName":"","CreateTime":"2014-01-07 11:34:30","DealerId":75882,"HandleTime":"","Id":23010715,"Name":"黎","OrderType":0,"Phone":"18320819196","ProvinceId":440000,"ProvinceName":"广东","ReDealerId":0,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":17658,"SpecName":"雪铁龙C4L 2014款 1.8L 自动智驱版劲智型 ","State":0},{"BuyPriceoff":0,"BuyTime":"","CityId":320300,"CityName":"徐州","Content":"","CountyId":0,"CountyName":"","CreateTime":"2014-01-07 11:34:04","DealerId":5248,"HandleTime":"","Id":23010688,"Name":"吴","OrderType":0,"Phone":"13852043028","ProvinceId":320000,"ProvinceName":"江苏","ReDealerId":0,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":15739,"SpecName":"雪铁龙C4L 2013款 1.8L 自动劲驰版","State":0},{"BuyPriceoff":0,"BuyTime":"","CityId":440300,"CityName":"深圳","Content":"铂金灰","CountyId":0,"CountyName":"","CreateTime":"2014-02-06 11:33:39","DealerId":9802,"HandleTime":"2014-01-07 11:33:40","Id":23010669,"Name":"潘","OrderType":0,"Phone":"13923846836","ProvinceId":440000,"ProvinceName":"广东","ReDealerId":9802,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":14551,"SpecName":"雪铁龙C4L 2013款 1.6L 手动劲智版","State":1}],"pages":40337,"total":201683},"cache":1000,"message":"","success":1,"result":0}NULL phpMyAdmin的问题 [紧急诚聘]PHP项目开发工程师(广州) php get取不到值 这个是什么PHP函数呢! 请问 下载的php模版怎么修改啊 php导出EXCEL时候出现.XLS格式与扩展名字不一致 提供免费SVN空间,可以建立私有项目 php配置绍兴交友网 急招PHP开发工程师 Php(欢)攻(迎)城(推)师(荐)!!!! 节假日自动提醒代码分享,阴历,阳历,几月的第几个星期几 PHP如何实现301转向
方法最好用新建无bom文件,把代码复制过去,再保存。
HTTP/1.1 200 OK
Date: Fri, 18 Apr 2014 09:00:59 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Content-Length: 2352
Cache-Control: private
Content-Type: application/json; charset=utf-8{"body":{"item":[{"BuyPriceoff":0,"BuyTime":"未确定","CityId":420100,"CityName":"武汉","Content":"白色的年前提车","CountyId":420105,"CountyName":"汉阳","CreateTime":"2014-02-06 11:35:27","DealerId":11569,"HandleTime":"2014-01-07 11:35:28","Id":23010786,"Name":"张国雄","OrderType":0,"Phone":"18108624658","ProvinceId":420000,"ProvinceName":"湖北","ReDealerId":11569,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":15737,"SpecName":"雪铁龙C4L 2013款 1.8L 手动劲智版","State":1},{"BuyPriceoff":0,"BuyTime":"","CityId":140100,"CityName":"太原","Content":"","CountyId":140105,"CountyName":"小店","CreateTime":"2014-02-06 11:34:35","DealerId":6752,"HandleTime":"2014-01-07 11:34:36","Id":23010726,"Name":"栗","OrderType":1,"Phone":"15386885719","ProvinceId":140000,"ProvinceName":"山西","ReDealerId":6752,"SeriesId":792,"SeriesName":"雪铁龙C5","SpecId":17043,"SpecName":"雪铁龙C5 2013款 2.0L 自动悦享型","State":1},{"BuyPriceoff":0,"BuyTime":"","CityId":440300,"CityName":"深圳","Content":"","CountyId":0,"CountyName":"","CreateTime":"2014-01-07 11:34:30","DealerId":75882,"HandleTime":"","Id":23010715,"Name":"黎","OrderType":0,"Phone":"18320819196","ProvinceId":440000,"ProvinceName":"广东","ReDealerId":0,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":17658,"SpecName":"雪铁龙C4L 2014款 1.8L 自动智驱版劲智型 ","State":0},{"BuyPriceoff":0,"BuyTime":"","CityId":320300,"CityName":"徐州","Content":"","CountyId":0,"CountyName":"","CreateTime":"2014-01-07 11:34:04","DealerId":5248,"HandleTime":"","Id":23010688,"Name":"吴","OrderType":0,"Phone":"13852043028","ProvinceId":320000,"ProvinceName":"江苏","ReDealerId":0,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":15739,"SpecName":"雪铁龙C4L 2013款 1.8L 自动劲驰版","State":0},{"BuyPriceoff":0,"BuyTime":"","CityId":440300,"CityName":"深圳","Content":"铂金灰","CountyId":0,"CountyName":"","CreateTime":"2014-02-06 11:33:39","DealerId":9802,"HandleTime":"2014-01-07 11:33:40","Id":23010669,"Name":"潘","OrderType":0,"Phone":"13923846836","ProvinceId":440000,"ProvinceName":"广东","ReDealerId":9802,"SeriesId":2945,"SeriesName":"雪铁龙C4L","SpecId":14551,"SpecName":"雪铁龙C4L 2013款 1.6L 手动劲智版","State":1}],"pages":40337,"total":201683},"cache":1000,"message":"","success":1,"result":0}NULL