PHP Exception hints

Source: Internet
Author: User
PHP Error hints
Project error, but run the page blank, do not know where the wrong.
in php.ini error_reporting = E_all Modified
Run discovery or no error prompt after reboot
------to solve the idea----------------------
Display_errors = On
So you can see the error message

Only error_reporting = E_all is useless
Because error_reporting does not take effect until the program runs, what if the error occurred during compilation?

------to solve the idea----------------------
References:
in php.ini there are the following
; Display_errors
; Default Value:on
; Development Value:on
; Production Value:off
I removed the 1, 2, semicolon.
So I have a question, will those warnings be shown?
Because the previous connection to MySQL (said this connection will be abandoned later), always have a warning, and later with error_reporting set ignore warning


These are the instructions section in the configuration file, the actual configuration instructions are as follows
Http://cn2.php.net/manual/zh/errorfunc.configuration.php#ini.error-reporting

If the moderator provides you with
Display_errors = On

Also for the server on the line should not open it, the error message will show you the path of the file and resource information (such as the database account password), you can let it appear in Apache or Nginx errorlog

PS: Learn php to read the manual more
  • 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.