PHP shields warning

Source: Internet
Author: User
PHP shields the warning php page from several warnings:
Warning: DOMDocument: loadXML (): Empty string supplied as input in ******. php on line 21 Call Stack: 0.0007 761568 ------ some warning statements are omitted in the middle -------. php: 21-40001

Then I add the statement ----- error_reporting (E_ALL &~ E_NOTICE); and then refresh the page, "-40001" is blocked, it is really not understood.


Reply to discussion (solution)

Error_reporting (E_ALL ^ E_NOTICE ^ E_WARNING );

Error_reporting (E_ALL ^ E_NOTICE ^ E_WARNING );


-40001 is a warning statement, not the data on my page.

Ini_set ('display _ errors ', 'off'); error_reporting (0 );


Try.

If there is more, The-40001 is probably your own output.

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.