Wampserver--Cancel the PHP page warning and notice level error

Source: Internet
Author: User

Learn FROM:HTTP://YIGE.ORG/P/91

In general, there are two ways to encounter this problem:
1, if there is server permissions, directly to the server on the configuration of the php.ini, changed to not output warning and notice level error.
Modify the error_reporting configuration parameter values for php.ini:

error_reporting e_all & ~e_notice

Of course, changing the php.ini is required to restart the Web server configuration before it can take effect.


2, if there is no server permissions, in the wrong php file header into the following code (in other locations can also, as long as the error before adding this code to the PHP file, if you use the Web system is a single entry, add this sentence at the entrance):

error_reporting (e_all & ~e_notice);

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.