Home >Backend Development >PHP Tutorial >PHP Notice: Undefined index error message solution_PHP tutorial
In the past two days, I installed a new server and changed it to Apache+PHP5.4.3. After configuring it and running the PHP website, an error message appeared: "PHP Notice: Undefined index..."
The specific information is:
PHP Notice: Undefined index: page in d:myqyandread.php on line 56
I personally think that this error message may be a php.ini configuration problem.
Solution:
Open the PHP configuration file php.ini, search for error_reporting, and find the following line:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Modified to:
error_reporting = E_ALL & ~E_NOTICE
Then just restart apache.