Types Of Error In php



Types Of Error In php..

Answer / kailash khatri

(E_ERROR) Value 1. Fatal error that occurs at script
runtime and stops the script from executing.

(E_WARNING) Value 2. Nonfatal error which occurs at
runtime (for example, if program is not able to connect to
MySQL server).

(E_PARSE) Value 4. Error that occurs at compile time
due to invalid syntax. You need to check your script to
resolve this error.

(E_NOTICE) Value 8. Not exactly an error, but a hint
that you may be doing something you don't want to.

(E_CORE_ERROR) Value 16. Fatal error that occurs when the
PHP engine starts. You cannot run any PHP scripts if this
error occurs.

(E_CORE_WARNING) Value 32. Nonfatal error that occurs
when the PHP engine starts. You can still run PHP scripts,
but you may have one or more problems depending on the
error.

(E_COMPILE_ERROR) Value 64. Occurs when the script is
compiled. A kind of fatal error.

(E_COMPILE_WARNING) Value 128. occurs when the script is
compiled. A kind of Nonfatal error.

(E_USER_ERROR) Value 256. User-generated fatal
error. Same as E_ERROR, but never thrown by PHP.

(E_USER_WARNING) Value 512. User-generated nonfatal
error. Same as E_WARNING, but never thrown by PHP.

(E_USER_NOTICE) Value 1024. User-generated notice.
Same as E_NOTICE, but never thrown by PHP.

(E_ALL) Value 2048. Not really a type of
error. Instead, it is all the errors rolled into one.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ICET Interview Questions

Hfr strains result from integration of

4 Answers   IISc,


Name the scientist who proposed stelar theory in Pteridophytes.

1 Answers  


Which SADAN is considered weakest in the world

0 Answers   SSC,


How many Neck canal Cells present in Marchantia?

1 Answers  


What is getline(),getfile()

0 Answers  






when was burma separated from india?

0 Answers  


which of the following is said to be an important aspect of industrial relation? 1.profit and loss of the org 2.future expansion programme 3.conflict and co operation 4.quality control 2. The Govt strategy in maintaining indusstrial relation in india is 1. laissez faire 2. total intervention 3. required intervention 4. none of above

0 Answers  


Dear friends any body can tell where i will get Degree lecturer chemistry study materials.

0 Answers  


three years ago the average age of a family of 5 members is 17 years. a baby having been born the average age of the family is the same today. the present age of the baby is?

3 Answers  


What is the Lichen used in the treatment of heart diseases?

1 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

0 Answers  


this is suresh studing llb 2nd year, i want to know about group1&2 examination means is there any easy way to prepare for that like reading by some books, then which books should i read,please give advice. thank u

0 Answers  


Categories