1.

What Are The Types Of Errors In Php And Explain Each One Of Them ?

Answer»

The types of errors in PHP are Notices, Warnings & Fatal Errors.

Notices are less important errors that you don’t WANT to give much importance to it. Like errors that OCCUR, when you try to access a variable that is not defined. If you change the notice errors to be not displayed, you won’t SEE these kinds of errors at all.

Warnings are errors of some serious nature that demand your ATTENTION. Even THOUGH these errors are displayed to the user, the script will not terminated. Example of this error includes accessing a file that doesn’t exist.

Fatal Errors are mission critical errors that result in immediate termination of your script. Examples of these errors include, calling an object of a non-existent class etc.

The types of errors in PHP are Notices, Warnings & Fatal Errors.

Notices are less important errors that you don’t want to give much importance to it. Like errors that occur, when you try to access a variable that is not defined. If you change the notice errors to be not displayed, you won’t see these kinds of errors at all.

Warnings are errors of some serious nature that demand your attention. Even though these errors are displayed to the user, the script will not terminated. Example of this error includes accessing a file that doesn’t exist.

Fatal Errors are mission critical errors that result in immediate termination of your script. Examples of these errors include, calling an object of a non-existent class etc.



Discussion

No Comment Found