PHP Novice Notice Error common solution _php tips

Source: Internet
Author: User
Just learn PHP, soon, generally look at the manual, and a PHP and MySQL Web development.

Recently in the whole message board, just met a problem.

Page, a lot like notice:use of undefined constant title-assumed ' title ' in D:\wamp\www\phpmysqlweb\bbs\list.php to line 17

The page is very difficult to see, very tangled ah, I use the Wamp integration package.

Baidu, it seems that a lot of friends also have this situation.

Notice means using a variable that is not declared, but the program does not affect use. It is no wonder that the normal operation, that is, unsightly.

There are 4 solutions:

1: Initialize on top

2: Open php.ini file

Modify configuration file

Error_reporting settings:

Find Error_reporting=e_all

Modified for Error_reporting=e_all & ~e_notice

3: With include error_reporting (E_all & ~e_notice); write in///the sky is so dry, because is a lazy person, afraid to open this one, hee ...

4: Directly at the top of the file add a error_reporting (0);

Ready to do PHP, but encounter this strange problem, there are Baidu, God horse problem, Baidu, have been solved.

Novice friends attention, when the page reported what errors, check the code, whether the semicolon or parentheses, I have made those careless questions, ashamed.

My PHP path is doomed to be difficult, but I will not give up, must do 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.