php Use of undefined constant的问题解决方式

在每个文件头上加 

error_reporting(0);

或者


搜索php.ini: 

error_reporting = E_ALL 

改为: 

error_reporting = E_ALL & ~E_NOTICE 

原文地址:https://www.cnblogs.com/CyLee/p/5789050.html