Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
Line 106: Line 106:
# setsebool -P httpd_can_network_connect 1
# setsebool -P httpd_can_network_connect 1
</pre>
</pre>
=== 錯誤訊息: Allowed memory size of XXX bytes exhausted ===
* 訊息: PHP Fatal error:  Allowed memory size of XXX bytes exhausted (tried to allocate XX bytes)
* 原因: 一次讀取13萬行的資料,發生錯誤
* 解決方法: 限制每次讀取的資料行數,例如每次只讀取 50 行的資料筆數來做處理。


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

Navigation menu