首页 >php教程 >php手册 >PHP Warning: date(): It is not safe to rely on the system&a

PHP Warning: date(): It is not safe to rely on the system&a

WBOY
WBOY原创
2016-06-06 19:41:481188浏览

在cacti中手动执行php -q poller.php报错 PHP Warning: date(): It is not safe to rely on the system's timezone settings. 解决办法:修改php.ini的date.timezone配置到你当前系统的时区配置,例如: date.timezone = Asia/Chongqing register_argc_argv

在cacti中手动执行php -q poller.php报错PHP Warning:  date(): It is not safe to rely on the system's timezone settings.


解决办法:修改php.ini的date.timezone配置到你当前系统的时区配置,例如:
        date.timezone = Asia/Chongqing
        register_argc_argv = On
        safe_mode = Off


找不到相关文件直接find / -name php.ini即可

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn