加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php 5.3访问Yii框架自带的例子系统时页面打印500错误

发布时间:2013-11-19 16:07:59 所属栏目:PHP教程 来源:站长网
导读:访问Yii框架自带的例子系统时,页面打印500错误: Error 500 date() [a href='function.date'function.date/a]: It is not safe to rely on the system's timez
访问Yii框架自带的例子系统时,页面打印500错误:

Error 500

date() [<a href='function.date'>function.date</a>]: 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 'UTC' for '8.0/no DST' instead

经查和试验解决方案为:

在php.ini中设置时区:

date.timezone = "Asia/Shanghai"

或者在网页开头中加入:

<?php

date_default_timezone_set("PRC");

?>

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读