問題描述
Notice: Constant DIR_FS_CATALOG already defined
我已經(jīng)在 php.ini<中注釋掉了
display_errors
/code>,但不起作用.
I've already commented out display_errors
in php.ini
, but is not working.
如何讓 PHP 不向?yàn)g覽器輸出這些東西?
How do I make PHP to not output such things to browsers?
更新
我把 display_errors = Off
放在那里,但它仍然報(bào)告這樣的通知,
I put display_errors = Off
there but it's still reporting such notices,
這是 PHP 5.3 的問題嗎?
Is this an issue with PHP 5.3?
也報(bào)告大量調(diào)用堆棧..
推薦答案
您可以將 display_errors
設(shè)置為 0
或使用 error_reporting()
函數(shù).
You can set display_errors
to 0
or use the error_reporting()
function.
然而,通知很煩人(我可以部分同情)但他們服務(wù)于一個目的.你不應(yīng)該定義一個常量兩次,第二次將不起作用,常量將保持不變!
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!
這篇關(guān)于如何關(guān)閉 PHP 通知?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!