To block PHP errors by configuring PHP

Source: Internet
Author: User
Tags parse error syslog

; Error handling and logging;
; Error control and registration;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; The error report is bitwise. Or add up the numbers to get the error report level you want.
; E_all-All errors and warnings
; E_error-Fatal Run-time error
; E_warning-run-time warning (non-fatal error)
; E_parse-Compile-time parse error
; E_notice-Runtime Reminders (these are often caused by bugs in your code,
, or it may be intentional behavior. (for example, an uninitialized variable is automatically initialized to a
The fact of an empty string uses an uninitialized variable)
; E_core_error-fatal error occurred during initialization of PHP startup
; E_core_warning-Warning (non-fatal error) occurred during initialization of PHP startup
; E_compile_error-Compile-time fatal error
; E_compile_warning-Compile-time warning (non-fatal error)
; E_user_error-error message generated by the user
; E_user_warning-user-generated warning message
; E_user_notice-user-generated reminder message
; Example:
; error_reporting = E_all & ~e_notice; Show all errors except reminders
; error_reporting = e_compile_error| e_error| E_core_error; Show only Errors
error_reporting = E_all & ~e_notice; Show all errors except reminders
Display_errors = on; Display error message (as part of output)
; On the final published Web site, it is strongly recommended that you turn off this feature and use the
; Error log instead (see below).
; Continue to make display_errors available in the final published Web site
; Expose some information about security, such as the file path on your Web service,
; Your database planning or other information.
Display_startup_errors = OFF; Even when Display_erroes is open, it happens in PHP's boot steps
; Error will not be displayed.
; It is strongly recommended to keep the display_startup_errors closed,
; In addition to the process of error-changing.
Log_errors = OFF; Error logged in log file (server specified log, stderr standard error output, or Error_log (below))
; As stated above, it is strongly recommended that you log errors in the final published Web site
; Replace the direct error output.
Track_errors = OFF; Save most recent error/warning message to Variable $php _errormsg (Boolean)
; error_prepend_string = ";"; String to output before the error message
; error_append_string = ";"; The string to output after the error message
; error_log = filename; Logging the error log in the specified file
; error_log = syslog; Logging error log in Syslog (NT event Log, Windows 95 is not valid)
warn_plus_overloading = OFF; Warning when ' + ' is used for strings
This removes
; E_warning-run-time warning (non-fatal error)
  • 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.