顯示php錯誤信息

希望在php文件發生錯誤時,頁面上不顯示錯誤信息,只是顯示500 Internal Server Error錯誤, 解決方案是,在配置文件php.ini中找到display_errors,將其設置爲On 一般用於開發時,設置爲On,部署時設置爲Off
相關文章
相關標籤/搜索