PHP页面出现 the page you are looking for is temporarily unavailable. Please try again later. nginx会在页面出错的时候提示该信息,在php页面上添加如下代码:
ini_set("display_errors","On");
error_reporting(E_ALL);
可将错误打印出来,解决问题。
将error_reporting(0); 添加到php头部,可以忽略一些不影响功能的错误,如使用了未定义的变量。
本文提供了解决PHP页面错误的方法,通过设置display_errors为On,并配置error_reporting为E_ALL,使得错误信息得以打印出来。此外,文章还介绍了如何在头部添加error_reporting(0)来忽略不影响功能的错误。
1万+

被折叠的 条评论
为什么被折叠?



