Common solutions for PHP newbie NOTICE errors

Source: Internet
Author: User
Tags php and mysql

After learning PHP, I usually look at the manual and the Development of PHP and mysql web.

I recently encountered a problem on the entire message board.

Many pages are similar to Notice: Use of undefined constant title-assumed 'title' in D: \ wamp \ www \ phpmysqlweb \ bbs \ list. php on line 17

The page is ugly and tangled. I use the wamp integration package.

Baidu, it seems that many friends also have this situation.

Notice indicates that no declared variables are used, but the program will not affect the usage. It is no wonder that it can still run normally, but it is not elegant.

There are four solutions:

1: Initialize

2: Open the php. ini file.

Modify configuration file

Error_reporting settings:

Locate error_reporting = E_ALL

Change to error_reporting = E_ALL &~ E_NOTICE

3: Use include to convert error_reporting (E_ALL &~ E_NOTICE); write it in // The sky, because it is a lazy person, afraid to open this one .....

4: Add error_reporting (0) at the top of the file );

We are ready to engage in PHP, but this strange problem has been solved by Baidu, Shenma, and Baidu.

My new friends noticed that when the page reported an error, I checked the Code and whether there was a semicolon or parentheses missing. I just made some careless mistakes.

My path to PHP is doomed to be difficult, but I will not give up. I must do it well. Come on.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.