gpt4 book ai didi

php - 出现错误时加载500.shtml页面

转载 作者:行者123 更新时间:2023-12-03 08:35:17 25 4
gpt4 key购买 nike

file.php

<?php

ini_set('display_errors', 0);

if(){
echo 'test';

?>

我想隐藏错误并显示500.shtml页面,但我看到了google chrome错误页面。

//500.shtml
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or misconfiguration and was unable
to complete your request.<P> Please contact the server administrator and
inform them of the time the error occurred, and anything you might have
done that may have caused the error.<P> More information about this
error may be available in the server error log.<P>
</BODY></HTML>

最佳答案

Chrome始终会在其自己的页面上显示5xx错误。

关于php - 出现错误时加载500.shtml页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11371172/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com