Trigger 500 Internal Server Error in PHP and display Apache error page

前端 未结 9 1069
一整个雨季
一整个雨季 2020-12-25 11:30

How can i trigger 500 Internal Server Error or 404 Page Not Found Apache errors in PHP?

For 500 Internal Server Error i have tried

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 11:59

    On PHP 5.5 => "header("tester.php",true,500);" where tester.php does not exist. It works and takes me to my 500 page :)

    Unfortunately none of the other methods listed here worked for me for one reason or the other.

提交回复
热议问题