iT邦幫忙

0

請問這段 PHP 英文錯誤訊息是什麼意思 ?

php

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'UTC' for '8.0/no DST' instead in C:\AppServ\www\web\news.php on line 3

Warning: syntax error, unexpected $end in conf/db_dataobject.ini on line 8 in C:\AppServ\www\web\lib\fun.php on line 43

1 個回答

8
cheaster
iT邦新手 4 級 ‧ 2011-12-14 11:57:30
最佳解答

只是告訴你,在使用日期、時間function之前,要先設定好php的預設時區

是要加入下面這個檔嗎 ?
在php.ini上加入了date.timezone
date.timezone = Asia/Taipei

另外請問要加入圖片images/facebook.bmp
是像下面這樣打嗎 ?
<li>"><img
src="images/<?php echo $facebook;?>" </li>

我要發表回答

立即登入回答