如何关闭PHP通知? [英] How do I turn off PHP Notices?

查看:138
本文介绍了如何关闭PHP通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Notice: Constant DIR_FS_CATALOG already defined

已经在 php中注释了 display_errors .ini ,但不工作。

如何使PHP不将这些内容输出到浏览器?

How do I make PHP to not output such things to browsers?

更新

我把 display_errors = Off 但是它仍然报告这样的通知,

I put display_errors = Off there but it's still reporting such notices,

这是PHP 5.3的一个问题?

Is this an issue with PHP 5.3?

报告众多

Reporting numerous Call Stack too..

推荐答案

您可以设置 display_errors 0 或使用 error_reporting() 功能。

You can set display_errors to 0 or use the error_reporting() function.

然而,通知很烦人可以部分同情),但它们有一个目的。你不应该定义一个常数两次,第二次不行,常数将保持不变!

However, notices are annoying (I can partly sympathize) but they serve a purpose. You shouldn't be defining a constant twice, the second time won't work and the constant will remain unchanged!

这篇关于如何关闭PHP通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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