php CI框架log_message报错
2010-12-08 17:06
155 查看
再调用log_message的时候报告如下错误:
A PHP Error was encountered
Severity: WarningMessage: date() [function.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 'UTC' for '8.0/no DST'
instead
Filename: libraries/Log.php
Line Number: 89
解决方案:
打开php.ini ,修改date.timezone,进行如下配置:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =PRC
相关文章推荐
- CI框架源码解析十八之日志记录类文件Log.php
- CI框架源码学习笔记3——Log.php
- CI框架中 日志输出方法log_message()只允许输出字符串解决方案
- CI框架源码分析之Session类Session.php
- CI框架源码解析二十之文件上传类文件Upload.php
- php ci 2.0框架 ORM
- PHP-CI框架数据库连接默认是长连接,需要注意应用场景
- 【ci框架】codeIgniter.php:系统初始化文件解读
- 【PHP】MVC 思想之 CI 框架的学习总结(二)
- CI等框架项目出现白屏(PHP5.5)
- PHP CI框架使用多个数据库
- CI框架学习之--隐藏入口文件-index.php
- PHP - CI框架 - OSS上传
- CI框架源码阅读笔记8 控制器Controller.php
- CI框架uri去掉index.php
- PHP CI框架的url路由配置
- CI框架源代码阅读笔记3 全局函数Common.php
- CI框架源码阅读---------Model.php
- PHP CI框架分页问题。