摘要: 今天工作中,遇到个很诡异的问题,在本地测试没有问题,传到线上测试服务器,运行出现了Bug。我在做一个接口,使用php的curl扩展,向远程服务器post数据,在网上搜了很多关于json_decode解析返回null的解决办法,但是感觉跟自己的都不符合,在服务端打印出post过来的字符串, "{\"data\":[{\"xmon_task_id\":152,\"ip\":134744072,\"port\":80,\"xmon_list\":\"17,18,19,20,21,2 阅读全文
posted @ 2013-08-06 17:02 wangjunzi 阅读(2319) 评论(0) 推荐(0) 编辑
摘要: 今天在本地运行PHP脚本文件没有问题,但是传到线上测试服务器以后,报了如下错误:Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this 阅读全文
posted @ 2013-08-06 16:32 wangjunzi 阅读(504) 评论(0) 推荐(0) 编辑