Explain the different types of errors in PHP.
Explain the different types of errors in PHP.
|
Few errors that i faced -
E_ALL: Catches all errors and warnings E_USER_WARNING: User-generated warning message. E_PARSE: Compile time parse error. E_ERROR: A fatal error that causes script termination |
Better to search in Google. You will get as many as errors list. BTW how it will beneficial for you?
|
Check out error handling in PHP from w3schools.com
|
php.net has all of the information you need on php and examples.
|
404 error, server not found error 503, Database not found error etc.
|
Many different types of errors in PHP are notices, warning and fatal errors.
E_ERROR: A fatal error that causes script termination E_WARNING: Run-time warning that does not cause script termination E_PARSE: Compile time parse error. E_NOTICE: Run time notice caused due to error in code E_CORE_ERROR: Fatal errors that occur during PHP's initial startup (installation) E_CORE_WARNING: Warnings that occur during PHP's initial startup E_COMPILE_ERROR: Fatal compile-time errors indication problem with script. E_USER_ERROR: User-generated error message. E_USER_WARNING: User-generated warning message. E_USER_NOTICE: User-generated notice message. .E_STRICT: Run-time notices. E_RECOVERABLE_ERROR: Catchable fatal error indicating a dangerous error E_ALL: Catches all errors and warnings |
All times are GMT -7. The time now is 07:28 PM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.