When I was doing php, I suddenly got the error php Notice: Use of undefined constant. One is that the variable is not defined. Let’s take a look at the solution.
Error message
php Notice : Use of undefined constant
Analysis
These are PHP prompts rather than errors. PHP itself can be used directly without declaring variables in advance, but there will be prompts for undeclared variables. Generally, as an official website, prompts will be turned off, and even error messages will be turned off
Solution
How to turn off PHP prompts
Search php.ini:
The code is as follows
|
Copy code
|
||||||||
error_reporting = E_ALL Changed to:
Add to the header of each file
Foreign reference articles |
You need to change your php.ini file
change like below..