可能重复:
How to make PHP set HTTP status code to 500 automatically in case of any error condition? (including those that cannot be handled by user)显示500错误的任何错误
我想配置Apache发送给用户提供了一个自定义的500页面时,PHP 500响应脚本引发了一个致命的错误。 我现在所拥有的是它将打印错误内联的页面内容,这对开发很有好处,但不适合生产。
如何配置Apache以向用户发送包含自定义页面的500响应?
当PHP脚本引发致命错误时,OP正在寻找触发器500。 – 2010-08-25 22:36:58