在預設USBWebserver下載執行後,若您有用到date指令時,就會出現如下訊息
Warning: date(): It is not safe to rely on the system’s 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone. in F:\USBWebserver v8.6\root\ok.php on line 128
這時候要到php設定時區就可以解決,底下是設定方式。
1.出現的錯誤畫面
2.到php目錄找到php.ini檔案並打開,將date.timezoe前面的分號拿掉
3.並修改您的時區例如Asia/Taipei
4.錯誤訊息不見了
5.下次再開 USBWebserver發現日期又被複原
要修改settings目錄的php.ini才是正確的
同步發表於:使用USBWebserver出現date(): It is not safe to 的解決方法
最后编辑:2017-04-15作者:明和 蔡
这个作者貌似有点懒,什么都没有留下。