欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

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

程序员文章站 2024-01-13 19:10:34
...

在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即可