无论如何隐藏php错误消息? [英] is there anyway to hide php error messages ?

查看:80
本文介绍了无论如何隐藏php错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有隐藏php错误消息?因为我有我的PHP代码错误,但它在1秒后重定向并显示我的托管路径和PHP错误号,但这个错误没有任何影响。

Is there anyway to hide php error messages? Because i have in my php code error but it redirecting after 1 sec and shows my hosting path and php error number, but this error doesn''t effect anything.

推荐答案

你在代码中这样做吗?

Are you doing this in your code?

展开 | 选择 | Wrap | 行号


谢谢Dheeraj Joshi先生,你帮了我很多,它已经解决了,真的很棒,
Thanks Mr Dheeraj Joshi , you helped me alot, it''s solved, it was great really ,


最好修复发生的任何错误。如前所述,您可以禁止显示错误消息,但如果出现严重错误,这将使您遇到麻烦。另外,你可以抓住任何错误?低于E_ERROR级别(即警告,通知和用户定义的错误),并阻止它们出现。
it is always better to fix any errors that occur. as already mentioned, you can suppress the display of error messages, but this will get you in trouble, if there is a critical error appearing. additionally, you can catch any ?error? below E_ERROR level (i.e. warnings, notices and user defined errors) yourself and preventing them to show up.


这篇关于无论如何隐藏php错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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