写php是遇到的一个小问题

来源:互联网 发布:数据质量控制系统 编辑:程序博客网 时间:2024/05/22 03:12

                                 写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;;;

0 0
原创粉丝点击