我是武男, 24歲, 大家都叫我阿男...有的人還會叫我白目研究生...找我的話請Google "武男" 就沒錯了~

PHP-Dorm Project階段整理

Autor 白目研究生

用了APPSERV2.6部署

[sourcecode language='php']
getdate();
[/sourcecode]

看到了這樣子的問題

Strict Standards: getdate() [function.getdate]: 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 .\AppServ\www\modify.php on line 1

看樣子應該會有SET的方法設定時區

可以改成這樣

[sourcecode language='php']
date_default_timezone_set(『Asia/Taipei』);
echo strftime(『%Y-%m-%d %H:%M:%S』);
[/sourcecode]

參考資料:這裡

其他相關時間設定參數

才發現原來台灣一直不適用Etc/GMT+8

似乎要用

asia/taipei

這下子誤會大了…

然後還要看一下SNMP MIB TREE

又快又上手的,就是GetIf

以上

Random Posts

請留言

CommentComment