限时促销 - 低至 4.75CNH/月
00
21
07
01
立即开始
×

知识库

查找有关信息功能,故障排除指南,
以及与虚拟主机相关的其他技术信息的文章。

How to turn off PHP error reporting?

引用:
error report error_reporting php error display error

To turn off PHP error reporting you can use the following snippet in your PHP script:

error_reporting(0);

Just remember to call this before any other PHP directive.

Alternatively, you can add this line to your .htaccess file (it is located in your public_html folder) to suppress any php error messages:

php_flag display_errors off

 

You can also turn off php error messages by going Member area ->  Hosting control panel -> PHP configuration, choose Disabled for Display Errors.

 

  • 简单易用的建站助手
  • 99.9%在线时间保证
  • 24/7 在线支持
  • Powerful Control Panel
  • 30天退款保证
限时优惠促销!
低至
4
75
CNH
/月
节省 90%
立即开始