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...


Explain different types of errors in PHP (i.e. arguments in
errorreporting function)?

Answers were Sorted based on User's Feedback



Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / ansar

Its three types
1. Fatal error : this will stop the script.
2. Warning
3. Notice

Is This Answer Correct ?    27 Yes 1 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / sreedevi

errors are classified into 3 types
1.fatal errors
2.parser errors
3.startup errors

Is This Answer Correct ?    15 Yes 5 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / guest

error_reporting([int level]) sets the error_reporting
directive at runtime.

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 ?    9 Yes 1 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / devendrarjadav

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 ?    8 Yes 1 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / sonal

Fatal
Warning
Notice
Only due to Fatal Error Script will stop

Is This Answer Correct ?    9 Yes 2 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / malkesh sondagar

Its three types
1. Fatal error : this will stop the script.
2. Warning : A warning is a message saying "You are doing
something wrong and it is very likely to cause errors in the
future, so please fix it."
3. Notice : A notice is an advisory message meaning "You
probably shouldn't be doing what you're doing, but I'll let
you do it anyway"


Both notices and warnings will not halt execution of your
script, although I would encourage you to take them
seriously and strive to have not even one notice in your apps.

Is This Answer Correct ?    7 Yes 3 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / rajeev

1.fatal error
2.warrning
3.notice

Is This Answer Correct ?    9 Yes 6 No

Explain different types of errors in PHP (i.e. arguments in errorreporting function)?..

Answer / phponwebsites

Basically four types errors is occurred in php. There are:

1. Parse error
2. Fatal error
3. Warning
4. Noticed error
Parse error:

The parse errors php is the syntax error. It stops the execution of the script in php. The common reasons for occur parse in php as follows:
1.unclosed quotes
2.missing semicolon
3.unclosed braces
4.missing parentheses
5.add extra parentheses
Fatal error:

The fatal error will occur when you call the undefined function in php. It stop the execution of the php script.

Waring in php:

The warning is occurred when you include the file but the file is not found in php. It does not stop the execution of the php script.

For more details visit http://www.phponwebsites.com/2014/06/php-types-of-errors.html

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php and its advantages?

0 Answers  


1. Create student database. 2. First page should display the students available in the database. There should be add, edit and delete buttons. 3. There should be option to search students by name, code, date of joining, department or combination of these. 4. Should have an add/edit screen. Add and Edit should be handled in the same page. 5. Delete should ask for confirmation before deleting the actual record. 6. Validation should be done in JavaScript as well as php.

0 Answers   Zonex,


Which function is used in php to search a particular value in an array?

0 Answers  


how prepare the testing documentation.

0 Answers   Accenture,


What is php written in?

0 Answers  


What is polymorphism?

0 Answers  


display selected value in dropdown list through javascript without page refresh

5 Answers   ASD Lab,


What is implode() in php?

0 Answers  


why we used type-pool SLIS in ALVs? how many types of windows in scripts?

0 Answers   IBM,


How to replace a substring in a given string?

0 Answers  


What are the differences between require and include, include_once?

3 Answers  


Does php support multithreading?

0 Answers  


Categories