PHP屏蔽所有页面错误输出

PHP屏蔽所有页面输出错误:

ini_set("error_reporting","E_ALL & ~E_NOTICE");

在文件头部加上这句话即可屏蔽所有报错

(0)

相关推荐

    Database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1]

    select ID from ac_posts where ziID =  ;