php.ini的参数设置(定制)

来源:互联网 发布:阿里云 深信服 编辑:程序博客网 时间:2024/05/29 10:10

作者:zccst


1,时区问题

Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier

解决办法:找到php.ini,设置

date.timezone = ?如果是 ;date.timezone = ?去掉前面的;号。
=号后面的值可以设置为:PRC、Asia/Chongqing、Asia/Shanghai或Asia/Urumqi等试试。
如果是港台地区可以设置为:Asia/Macao 、Asia/Hong_Kong 或Asia/Taipei 等试试。
格式如:
date.timezone = PRC