Home > 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
Release: 2016-06-06 19:41:48
Original
1192 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template