[funcation.phpinfo]:錯誤


前些日子我一直在搞Dolphin安裝,但顯然全部在linux下的全部軟件的初次安裝都很難一次到位的,這不在安裝過程當中出現了種種錯誤。可是我把很難從國內找到解決方法的錯誤給寫了出來,並附帶解決方案,但願遇到一樣錯誤的午餐們能夠輕鬆些。
Warning
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 ' America

instead in /Users/{me}/Sites/localmirror/htdocs/tests/phpinfo.php on line 3 /New_York' for 'EDT/-4.0/DST' : phpinfo()[function.phpinfo]:Itisnot safe to rely on the system's  php

咱們能夠在Users/{me}/Sites/localmirror/htdocs/tests/phpinfo.php 這個頁面添加如下linux

的代碼:
<?php if(date_default_timezone_set('Europe/Stockholm') == 0) { print "<!-- Error uknown timezone using UTC as default -->\n";            date_default_timezone_set('UTC'); } phpinfo(); ?>
相關文章
相關標籤/搜索