在我的当前项目中,我使用普通的HTTP请求查询PHP,但也通过AJAX查询PHP,在AJAX中,我有时返回JSON格式的数据,有时返回普通文本。另一方面,使用AJAX请求,你不能确定你是否得到一个错误或你想要的数据,因为它不是直接显示的-你只是遇到了麻烦,因为你的应用程序不再工作了。
所以我想到了一个错误处理系统。我最好的想法是在发生错误时发送一个500 "Internal Ser
现在我的站点显示drupal内部服务器错误。Internal Server Error
The server encountered an internal error or misconfiguration and was unable toPlease contact the server administrator, webmaster@xxxxxx.xx and inform them of the time the error occurr