首页建站经验 php错误_date(): It is not safe to rely on the system's timezon

php错误_date(): It is not safe to rely on the system's timezon

当php遇到这种错误,请更改php.ini文件date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the d…

当php遇到这种错误,请更改php.ini文件

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 warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

根据提示,是php.ini中关于时区的设置问题。

查找一下:date.timezone = ?

如果是 ;date.timezone = ?

去掉前面的;号。=号后面的值可以设置为:PRC、Asia/Chongqing、Asia/Shanghai或Asia/Urumqi等试试。

如果是港台地区可以设置为:Asia/Macao 、Asia/Hong_Kong 或Asia/Taipei 等试试。

格式如:

date.timezone搜索 = PRC

 

本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/17430.html
上一篇PHP中UBB的使用方法
下一篇 php 获取301跳转后真实的url
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部