执行phpinfo();时提示:date_default_timezone_set()
執行phpinfo();時提示:
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. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /usr/local/apache2/htdocs/www/index.php on line 3
解決辦法:
vi /usr/local/php/etc/php.ini
找到date.timezone =
設置為date.timezone = Asia/Chongqing
轉載于:https://www.cnblogs.com/webu/archive/2013/04/19/3031608.html
總結
以上是生活随笔為你收集整理的执行phpinfo();时提示:date_default_timezone_set()的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 平安金管家联名信用卡申请条件:不是人人都
- 下一篇: 动态规划算法php,php算法学习之动态