php 5.3访问Yii框架自带的例子系统时页面打印500错误
访问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"); ?> (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |