您的位置:首页 > 编程语言 > PHP开发

写php是遇到的一个小问题

2015-05-17 21:27 267 查看
写php是遇到的一个小问题

今天在写php时偶然间遇到的一个问题,,以前没有遇到过,当然以前也没有写过php代码,,在写关于日期时间函数时,,总是弹出warning:

strtotime(): 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 warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Chongqing’ for ‘CST/8.0/no DST’ instead

于是就找原因啊,,找了好长时间,终于找到了(新手的悲哀啊),,根据它的提示,,找到是在php目录下的php.ini文件的问题,解决方法如下:


Ok;;;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: