PHP Warning: phpinfo(): It is not safe to rely on the system's timezone settings
2015-06-16 07:56
706 查看
[Sat Oct 12 09:14:53 2010] [error] [client 192.168.1.162] PHP Warning: phpinfo(): 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 in /www/index.php on line 2
解决方法是
[root@localhost lib]# vi /usr/local/lib/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone date.timezone =Asia/Shanghai
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 in /www/index.php on line 2
解决方法是
[root@localhost lib]# vi /usr/local/lib/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone date.timezone =Asia/Shanghai
相关文章推荐
- Json的解析
- css实现布局
- JSP(4)----servlet编程3
- javascript读取freemaker的变量数据
- [LeetCode][JavaScript]Text Justification
- c#模拟js escape方法(转)
- jQuery Mobile Data 属性
- jquerymobile标签-属性手册
- 详解JavaScript正则表达式中的global属性的使用
- javascript验证邮件地址和MX记录的方法
- JavaScript正则表达式中的ignoreCase属性使用详解
- AngularJS学习笔记之基本指令(init、repeat)
- JavaScript正则表达式之multiline属性的应用
- 在JavaScript的正则表达式中使用exec()方法
- AngularJS学习笔记之ng-options指令
- 简述JavaScript的正则表达式中test()方法的使用
- Bootstrap基础学习
- 纯javascript实现四方向文本无缝滚动效果
- 简述JavaScript对传统文档对象模型的支持
- jquery插件splitScren实现页面分屏切换模板特效