Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. 解决方法

2009年10月27日 | 分类: PHP | 标签:

最终决定把PHP从5.2.11换成5.3,运行phpmyadmin的时候,就报错了。
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. ………………..

没有设置默认时区,编辑
/etc/php.ini
找到
;date.timezone=
把分号去掉,并且在后面加上PRC,因为在中国
date.timezone=PRC
重启apache
service httpd restart 前提是你把apache设置成服务 否则就是
apache_dir/bin/apache1 restart

目前还没有任何评论.