在每个文件头上加
error_reporting(0);
或者
搜索php.ini: error_reporting = E_ALL 改为: error_reporting = E_ALL & ~E_NOTICE
php Use of undefined constant的问题解决方式
原文:http://www.cnblogs.com/CyLee/p/5789050.html