Error prompt: phpNotice: Useofundefinedconstant. Analysis: these are PHP prompts rather than error reports. PHP can be directly used without declaring the variable in advance, but a prompt will be prompted for not declaring the variable. Generally, as a formal website, the system will turn off the prompt.
Error message:Php Notice: Use of undefined constant
Analysis:These are PHP prompts rather than errors. PHP itself can be directly used without declaring variables in advance, but there will be prompts for UN-declared variables. Generally, when a website is a formal website, it will turn off the prompt and even the error message.
Solution:Close the PHP prompt and search for php. ini:
Change error_reporting = E_ALL to error_reporting = E_ALL &~ E_NOTICE
You can add the following code to each file header:
Error_reporting (0); this code is a php fault tolerance statement, which can block errors and does not display error information on the page, but the error still exists, although this is not good, it can solve the problem.