Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are the different types of Errors in PHP?

Answers were Sorted based on User's Feedback



What are the different types of Errors in PHP? ..

Answer / subrat

here are three basic types of runtime errors in PHP:

1. Notices: These are trivial, non-critical errors that PHP
encounters while executing a script - for example,
accessing a variable that has not yet been defined. By
default, such errors are not displayed to the user at all -
although you can change this default behaviour.

2. Warnings: These are more serious errors - for example,
attempting to include() a file which does not exist. By
default, these errors are displayed to the user, but they
do not result in script termination.

3. Fatal errors: These are critical errors - for example,
instantiating an object of a non-existent class, or calling
a non-existent function. These errors cause the immediate
termination of the script, and PHP?s default behaviour is
to display them to the user when they take place.

Is This Answer Correct ?    199 Yes 12 No

What are the different types of Errors in PHP? ..

Answer / nikunj

As per above answer, PHP gives one more error message that
is :

Parse Error: When we make mistake in PHP code like, missing
semicolon or any unexpected symbol in code

Is This Answer Correct ?    126 Yes 17 No

What are the different types of Errors in PHP? ..

Answer / ashil

here are four basic types of runtime errors in PHP:

1. Notices: These are trivial, non-critical errors that PHP
encounters while executing a script - for example,
accessing a variable that has not yet been defined. By
default, such errors are not displayed to the user at all -
although you can change this default behaviour.

2. Warnings: These are more serious errors - for example,
attempting to include() a file which does not exist. By
default, these errors are displayed to the user, but they
do not result in script termination.

3. Fatal errors: These are critical errors - for example,
instantiating an object of a non-existent class, or calling
a non-existent function. These errors cause the immediate
termination of the script, and PHP?s default behaviour is
to display them to the user when they take place.

4. Parse Error: When we make mistake in PHP code like,
missing
semicolon or any unexpected symbol in code

Is This Answer Correct ?    48 Yes 9 No

What are the different types of Errors in PHP? ..

Answer / shashikiran

Different type of errors are as following:

1. E_ERROR : Fatal run-time errors.

2. E_WARNING : Run-time warning.

3. E_PARSE : Compile time parse error.

4. E_NOTICE : Run time notice.

5. E_CORE_ERROR : errors that occur during PHP's initial
startup.

6. E_CORE_WARNING : Warnings (non-fatal errors) that occur
during PHP's initial startup.

7. E_COMPILE_ERROR : Fatal compile-time errors.

8.E_USER_ERROR : User-generated error message.

9.E_USER_WARNING : User-generated warning message.

10. E_USER_NOTICE : User-generated notice message.

11.E_STRICT : Run-time notices. Enable to have PHP suggest
changes to your code which will ensure the best
interoperability and forward compatibility of your code.

12.E_RECOVERABLE_ERROR :Catchable fatal error. It indicates
that a probably dangerous error occured, but did not leave
the Engine in an unstable state.

13.E_ALL : All errors and warnings, as supported, except of
level E_STRICT in PHP < 6.

Is This Answer Correct ?    33 Yes 5 No

What are the different types of Errors in PHP? ..

Answer / p g.senthilkumar

e-notice error
e-compile error
e-warning error
e-parse error
e-fatal error
e-recoverable error
e-all
e-user error
e-user_compile_error

Is This Answer Correct ?    44 Yes 18 No

What are the different types of Errors in PHP? ..

Answer / hellfinger

ru people gone mad... this has become chat thread and plzz stop it and concentrate on bleady work

Is This Answer Correct ?    27 Yes 7 No

What are the different types of Errors in PHP? ..

Answer / rony

stop to mis use of this site

Is This Answer Correct ?    3 Yes 1 No

What are the different types of Errors in PHP? ..

Answer / sriman

Different type of errors are as following:

1. E_ERROR : Fatal run-time errors.

2. E_WARNING : Run-time warning.

3. E_PARSE : Compile time parse error.

4. E_NOTICE : Run time notice.

5. E_CORE_ERROR : errors that occur during PHP's initial
startup.

6. E_CORE_WARNING : Warnings (non-fatal errors) that occur
during PHP's initial startup.

7. E_COMPILE_ERROR : Fatal compile-time errors.

8.E_USER_ERROR : User-generated error message.

9.E_USER_WARNING : User-generated warning message.

10. E_USER_NOTICE : User-generated notice message.

11.E_STRICT : Run-time notices. Enable to have PHP suggest
changes to your code which will ensure the best
interoperability and forward compatibility of your code.

12.E_RECOVERABLE_ERROR :Catchable fatal error. It indicates
that a probably dangerous error occured, but did not leave
the Engine in an unstable state.

13.E_ALL : All errors and warnings, as supported, except of
level E_STRICT in PHP < 6.

Is This Answer Correct ?    2 Yes 1 No

What are the different types of Errors in PHP? ..

Answer / monica

My LOVE To Every Body
who cares and thinks PHP can be fruitful for great programming!

OPEN SOURCE, OPEN FRIENDS and OPEN MINDS matters

Love u all there and keep this thread posting.......


i want somebody to more elaborately guide about the errors.

Wtih Love
Monica
monica1234@gmail.com

Is This Answer Correct ?    1 Yes 0 No

What are the different types of Errors in PHP? ..

Answer / jaysingh

Notices: These are non-critical errors which PHP encounters
while running a script. For example, a variable
accessibility before it is declared.

Warnings: The are more serious errors. For example, using
include()without the existence of the file.

Fatal Errors: These errors are critical errors. For example,
creating an object of a non-existent class. These errors
terminate the script’s execution immediately. These are
intimated to the users.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

Do I need apache for php?

0 Answers  


Write a function that takes "depth" as argument and return sum of node's data of that depth. For instance, (0) depth 0 / \ (10) (20) depth 1 / \ (40) (50) depth2 If I pass get_sum_by_depth(2) , it would return 90 (i.e. 40 + 50 )

0 Answers   Amazon,


Is it necessary to use closing tag in php?sometime without closing tag things work.why?

2 Answers   ShopRite,


Why is used in php?

0 Answers  


Is PHP is procedure oriented or object oriented?

10 Answers   DLF, Net Solution,


How to get a random value from a php array?

0 Answers  


What is inheritance in php? How many types of inheritance supports php?

0 Answers  


Tell me how can I display text with a php script?

0 Answers  


Does session expire on closing browser?

0 Answers  


WHat is the diff. between PHP4 and PHP5?

6 Answers   Clarion Technologies, IBM, OmniNet, Sparkton Infotech,


What is the best php version for wordpress?

0 Answers  


How will you sened requests from server1 to server2 from server2 to server3 and so on .. w/o letting the output come to the browser or say the client end in php

3 Answers   Swayam, TCS, Yahoo,


Categories