分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
php Warning: phpinfo(): It is not safe to rely on the system's timezone settings.解决方法
安装php后,使用phpinfo();查看信息,有Warning: phpinfo(): It is not safe to rely on the system's timezone settings,原因是没有设定系统的timezone。
解决方法:
1.打开php.ini,如不知道php.ini的位置,可以使用
<?phpphpinfo();?>
查看Loaded Configuration File就知道当前使用的php.ini位置了。
2.找到date.timezone,修改为 date.timezone = PRC,后保存。
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone =
修改为
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = PRC
3.修改后重启php,查看phpinfo(); warning 消失。