php出现Notice: Use of undefined constant.....问题的解决方法
2018-01-29 00:11
603 查看
这其实属于一个不是问题的问题。
这是一个提示信息,我们在开发过程中会经常遇到这种提示。但你会发现这种提示并不影响代码的运行。
所以一般我们可以选择关闭这种提示。
打开php.ini,按下crtl+F在文件中搜索查找,error_reporting = E_ALL,这是默认的设置我们需要把它改成error_reporting = E_ALL&~E_NOTICE
,修改之后要记得重启一下wamp才会生效噢
这是一个提示信息,我们在开发过程中会经常遇到这种提示。但你会发现这种提示并不影响代码的运行。
所以一般我们可以选择关闭这种提示。
打开php.ini,按下crtl+F在文件中搜索查找,error_reporting = E_ALL,这是默认的设置我们需要把它改成error_reporting = E_ALL&~E_NOTICE
,修改之后要记得重启一下wamp才会生效噢
相关文章推荐
- PHP运行出现Notice : Use of undefined constant 的解决方法【已测】
- PHP运行出现Notice : Use of undefined constant 的解决方法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP错误Notice : Use of undefined constant 的完美解决方法
- PHP错误Notice : Use of undefined constant 的完美解决方法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP出现Notice警告 : Use of undefined constant的解决方法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP运行出现Notice : Use of undefined constant 的解决办法
- PHP运行出现Notice : Use of undefined constant 的完美解决方案
- PHP运行出现Notice : Use of undefined constant 完美解决方案
- PHP运行出现Notice : Use of undefined constant 的完美解决方案
- PHP正则替换函数preg_replace()报错:Notice Use of undefined constant的解决方法分析
- PHP运行出现Notice : Use of undefined constant 的完美解决方案分享
- PHP运行出现Notice : Use of undefined constant 的完美解决方案
- PHP运行出现Notice : Use of undefined constant 的完美解决方案
- php当中出现的错误:Use of undefined constant title - assumed 'title'的解决方法