PHP脚本在Localhost上没有显示任何错误


PHP Scripts not showing any error on Localhost?

我想知道为什么http://localhost/服务器没有显示任何错误?我抛出了像"require(abc.php);"这样的错误,但这并不存在,

尝试抛出每个错误,但屏幕变为空白或实际输出出现,但没有报告错误。

我还写了error_reporting(E_ALL)在文件顶部,但仍然无法确定。

如果"display_errors"设置为"1",您应该查看php.ini,或者您可以使用在php上设置变量

ini_set('display_errors', 1);

尝试设置

ini_set('display_errors', '1');

同样。