提示“Notice: Use of undefined constant”错误说明:
php.ini配置问题,

修改php.ini,将error_reporting = E_ALL修改成
error_reporting = E_ALL & ~E_NOTICE
即可解决。