关闭错误报告php [英] Turning error reporting off php

查看:111
本文介绍了关闭错误报告php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想关闭网站上的错误报告.为此,我在Google上进行了谷歌搜索,发现将以下提到的代码放置在网站上可以阻止错误显示在屏幕上.我将其放置在我的网站中,但是没有用.请帮帮我.谢谢

I wanted to turn off the error reporting on a website. Googling for it I found that placing the code mentioned below in the website stops the errors from getting displayed on the screen. I placed it into my website but it did not work. Please help me out. Thanks

<?php

error_reporting(0); // Turn off all error reporting

?>

推荐答案

试过这个吗?

error_reporting(0);
@ini_set('display_errors', 0);

这篇关于关闭错误报告php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆