作者Uihc (我 有我的倔强...)
看板PHP
标题[请益] 想请问警告讯息的意思
时间Wed Oct 24 16:50:48 2007
有一个警告讯息困惑很久了,之前忙着把其它功能写完所以没有去理它...
虽然有取得想要的结果,但是每次执行都会出现下面的警告讯息,觉得很碍眼= =:
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
1F:推 buganini:#4376 10/24 16:55
2F:→ buganini:而且讯息里明明就有写啊 10/24 16:56
3F:→ book989:少了引号吗= =a 猜的 10/24 17:10
4F:→ Uihc:唔 但是我都有如预期取到了日期->yyyymmdd 所以不明白警告 10/24 17:33
5F:→ Uihc:喔喔 改了时区果然有用...感谢^^ 10/24 17:47
6F:推 buganini:因为你error reporting设到E_STRICT所以他特别严格啊 10/24 18:31