Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
Line 111: Line 111:
* 原因: 一次讀取13萬行的資料,發生錯誤
* 原因: 一次讀取13萬行的資料,發生錯誤
* 解決方法: 限制每次讀取的資料行數,例如每次只讀取 50 行的資料筆數來做處理。
* 解決方法: 限制每次讀取的資料行數,例如每次只讀取 50 行的資料筆數來做處理。
=== 錯誤訊息: It is not safe to rely on the system's timezone settings ===
* 訊息: 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.
* 原因:
* 解決方法: 使用時間相關函數之前,先設定時區,例 {{kbd | key = <nowiki>date_default_timezone_set("Asia/Taipei")</nowiki>}}


=== 移除非預期的空白(全形空白) ===
=== 移除非預期的空白(全形空白) ===

Navigation menu