在PHP中发送另一个文档的内容
我正在尝试在PHP中使用自定义错误处理系统。
我想发送某个文档代替导致错误的文档,但我不想重定向。
几乎是,我正在尝试复制错误的内容(但是我不能使用错误记录,因为这是一个500错误)。
I’m trying to use a custom error handling system in PHP.
I want to send a certain document in place of the one that causes the error, but I don’t want to redirect.
Pretty much, I’m trying to replicate what ErrorDocument does (But I can’t use ErrorDocument, as it’s a 500 error).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我明白了。
我必须需要在处理程序中显示脚本的错误(在register_shutdown_function中注册)。
Alright, I got it.
I had to require the error showing script in my handler (registered in register_shutdown_function).