PHP强制Apache的错误 [英] PHP Force Apache error
本文介绍了PHP强制Apache的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
感谢这个论坛,我学会了PHP头功能实际上并没有发送头Apache服务器,但只有到客户端。
Thanks to this forum, I learnt PHP header function does not actually send header to Apache server but only to the client.
我想要做的是产生错误500,并让阿帕奇显示其相应的页面。有没有办法,迫使它?
What I wanna do is to generate an error 500, and let Apache displays its corresponding page. Is there a way to force it ?
在此先感谢!
(和allez蓝军!)
Thanks in advance ! (and allez les bleus !)
推荐答案
做一个重定向到导致500的URL。
Do a redirect to a URL that causes a 500.
例如具有无效的.htaccess指令的URL。
For example a url with an invalid .htaccess directive.
这篇关于PHP强制Apache的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文