TAILIEUCHUNG - Professional Information Technology-Programming Book part 87

Tham khảo tài liệu 'professional information technology-programming book part 87', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Error Reporting PHP has a configurable error reporting system that you can set to be just as pedantic you want it to be about code. By default the strictest mode is not enabled and in most cases you get a warning message only when an imperfection has a good chance of affecting the intended purpose of your script. Changing Error Levels To change the error reporting level you use the error_reporting function with a value that is made up of the constants shown in Table . Table . Error Reporting Constants Constant Description E_ERROR Indicates a fatal runtime error. Script execution is halted. E_WARNING Issues runtime warnings. Non-fatal script execution continues. E_PARSE Indicates compile-time parsing errors. E_NOTICE Issues runtime notices which may or not indicate errors. E_CORE_ERROR Issues a fatal error generated internally by PHP. E_CORE_WARNING E_COMPILE_ERROR Issues a warning generated internally by PHP. Issues a fatal error generated by the Zend engine. E_COMPILE_WARNING Issues a warning generated by the Zend engine. E_USER_ERROR Issues a user-generated error message triggered by trigger error. E_USER_WARNING Issues a user-generated warning triggered by TRigger_error. E_USER_NOTICE Issues a user-generated notice triggered by trigger_error. E_ALL Issues all errors and warnings except E_STRICT. E_STRICT Issues all errors and warnings plus PHP suggests code changes to improve code compatibility. You combine these constants by using bitwise operators to create a bitmask that represents the desired level. The default value is E_ALL E_NOTICE which means that all errors and warnings are displayed except for E_STRICT which is not covered by E_ALL and E_NOTICE. To set the error reporting level so that all warnings and notices are displayed you use the following command error_reporting E_ALL The type of notices that are not displayed by default are not life-threatening and do not affect the normal execution of a script. The E_NOTICE error level can be very .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.