What to do if a blank page appears on the PHP page _php tutorial

Source: Internet
Author: User
   home of the Help (www.Bkjia.com) tutorialIn the process of using PHP, we often encounter the page appears blank, the page appears blank because the program runs the problem can not be normal execution, and the PHP environment configuration information to prevent the page output PHP returned error message, encountered such a problem do not panic, as long as the wrong information to open PHP, Then, based on the error message, you can find the cause of the problem and then resolve it gradually.

Here's how to set the error level for PHP in your program:

At the beginning of the program run, we use the error_reporting () function to set the error level of PHP and return to the current level.

The following is the referenced content:
Error_reporting (Report_level);

The following is the referenced content:
If the parameter level is not specified, the current error levels are returned. The following items are level possible values: A value constant describes 1 e_error Fatal run-time errors. Errors that can is recovered from. Execution of the script is Halted2 e_warning non-fatal run-time errors. Execution of the script is not halted4 e_parse compile-time PARSE errors. The Parse errors should only is generated by the Parser8 E_notice Run-time notices. The script found something that might is an error, but could also happen when running a script normally16 e_core_error Fat Al errors at PHP startup. This is a e_error in the PHP core32 e_core_warning non-fatal errors at php startup. This is a e_warning in the PHP core64 e_compile_error Fatal compile-time errors. This is a e_error generated by the Zend Scripting Engine128 e_compile_warning non-fatal compile-time errors. This is a e_warning generated by the Zend Scripting Engine256 e_user_error Fatal user-generated ERROR. This is a e_error set by the programmer using the PHP function Trigger_error () e_user_warningNon-fatal user-generated warning. This is a e_warning set by the programmer using the PHP function Trigger_error () 1024x768 e_user_notice user-generated No Tice. This is a e_notice set by the programmer using the PHP function Trigger_error () 2048 e_strict run-time notices. PHP suggest changes to your code to help interoperability and compatibility of the code4096 e_recoverable_error catchable Fatal error. This is a e_error, but can being caught by a user defined handle (see also Set_error_handler ()) 8191 E_all all errors and Warnings, except level e_strict (E_strict'll be is part of E_all as of PHP 6.0)

Example:

The following is the referenced content:
Any number of the above options can be connected (with OR or |) using "or" to report all required levels of errors. For example, the following code turns off user-defined errors and warnings, performs certain actions, and then reverts to the original error level://Disable the bug report error_reporting (0);//Report Run-time error error_reporting (E_error | e_warning | E_parse);//Report All Errors error_reporting (E_all);? >

http://www.bkjia.com/PHPjc/364257.html www.bkjia.com true http://www.bkjia.com/PHPjc/364257.html techarticle Fire Net (liehuo.net) tutorial in the process of using PHP, we often encounter the page appears blank, the page is blank because the program is running in the process of encountering problems can not be performed properly ...

  • 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.