|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PHP
DETAILS
Question: Name and explain five of the PHP error constants?
Answer: Some of the five PHP error constants are E_ERROR, E_WARNING, E_PARSE, E_USER_WARNING, E_COMPILE_WARNING, etc E_ERROR: -This error is displayed when there is fatal error which halts the execution of the script immediately. E_WARNING: -This warns the programmer about the error but the execution of the script is not stopped. E_PARSE: -These errors occur during compile time and these errors should only be generated by the parser. E_USER_WARNING: -This warning error is generated by the user and is non fatal. This is set by the programmer using trigger_error(). E_COMPILE_WARNING: -this error is generated by the Zend scripting engine. This is a compile time non fatal error.
|
|
|
Category |
PHP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8139 users |
Added on |
9/14/2014 |
Views |
70138 |
Rate it! |
|
|
Question:
Name and explain five of the PHP error constants?
Answer:
Some of the five PHP error constants are E_ERROR, E_WARNING, E_PARSE, E_USER_WARNING, E_COMPILE_WARNING, etc E_ERROR: -This error is displayed when there is fatal error which halts the execution of the script immediately. E_WARNING: -This warns the programmer about the error but the execution of the script is not stopped. E_PARSE: -These errors occur during compile time and these errors should only be generated by the parser. E_USER_WARNING: -This warning error is generated by the user and is non fatal. This is set by the programmer using trigger_error(). E_COMPILE_WARNING: -this error is generated by the Zend scripting engine. This is a compile time non fatal error. Source: CoolInterview.com
In PHP 5 a new error level E_STRICT is available. As E_STRICT is not included within E_ALL you have to explicitly enable this kind of error level. Source: CoolInterview.com
Answered by: dhanesh mane | Date: 1/22/2010
| Contact dhanesh mane
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Describe about PHP error and logging information?
|
View Answer
|
|
Explain about PHP cookies?
|
View Answer
|
|
Explain about the $_GET variable of PHP?
|
View Answer
|
|
What is a PHP accelerator?
|
View Answer
|
|
Explain about objects in PHP?
|
View Answer
|
|
Explain about Functions in PHP?
|
View Answer
|
|
Explain about the data types in PHP?
|
View Answer
|
|
What exactly is PHP ?
|
View Answer
|
|
In case of download in php, How will you make a percentage bar showing current status of total 100%?
|
View Answer
|
|
Which will execute faster on php POST or GET? Explain
|
View Answer
|
|
What are new features that are in added in PHP5?
|
View Answer
|
|
How to prevent form hijacking in PHP?
|
View Answer
|
|
How can we submit a form without a submit button?
|
View Answer
|
|
How to add multiple categories through PHP?
|
View Answer
|
|
What do you need to do to improve the performance (speedy execution) for the script you have written?
|
View Answer
|
|
How do you capture audio/video in PHP?
|
View Answer
|
|
difference between require() and include()
|
View Answer
|
|
How to handle drop down box change event without refreshing page?
|
View Answer
|
|
What is the difference between Split and Explode
|
View Answer
|
|
What is the effect of large number of data stored in a database on a website ?
|
View Answer
|