Tag: ERRORS IN PHP

WHAT ARE THE DIFFERENT TYPES OF ERRORS IN PHP?

January 10, 2010 | Filed Under PHP | Comments Off

There are three type of errors are present in PHP

1-Notices
2-Warnings
3-Fatal errors

Notices:
These are trivial, non-critical errors. that does not terminate script .
Condition:
1- Accessing a variable that not define.

Warnings:
These are more serious errors
Condition:
1-attempting to include() a file which does not exist.

Fatal errors:
These are critical errors that terminate script and stop
Condition:
1-instantiating an object of a non-existent class
2- Calling a  non-existent function
3-Missing semicolon
4-missing braces
5- Destroyed DOM

Article written by admin

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker