[請益] 想請問關於data()警告訊息的意思
有一個警告訊息困惑很久了,之前忙著把其它功能寫完所以沒有去理它...
雖然有取得想要的結果,但是每次執行都會出現下面的警告訊息,覺得很礙眼= =:
PHP Strict Standards: date() [<a href='function.date'>function.date</a>]: 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
X:\php\abc.php on line 89
89行,我只是想利用日期搭配$Code內的字串產生一組id,程式碼如下:
$ID=$Code."-".date(Ymd);
想請教各位前輩,這段訊息是叫我做什麼呢??
謝謝^^
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.64.235
推
10/24 16:55, , 1F
10/24 16:55, 1F
→
10/24 16:56, , 2F
10/24 16:56, 2F
→
10/24 17:10, , 3F
10/24 17:10, 3F
→
10/24 17:33, , 4F
10/24 17:33, 4F
→
10/24 17:47, , 5F
10/24 17:47, 5F
推
10/24 18:31, , 6F
10/24 18:31, 6F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
151
156