PHP Notice: Undefined index error message solution_PHP tutorial

WBOY
Release: 2016-07-13 10:30:29
Original
863 people have browsed it

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/765436.htmlTechArticleIn the past two days, I installed a new server and changed it to Apache+PHP5.4.3. After configuring it, I ran the PHP website and an error message appeared. An error message: PHP Notice: Undefined index... The specific information is: PHP Notice:...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template