What are the different types of Errors in PHP?
Answer Posted / 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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to connect to mysql from a php script?
What are the different components used in php for formatting?
what is the scope of php in the future if any other language is developed then may be php is loss ???
What is the correct and the most two common way to start and finish a php block of code?
What is a php class?
What does trim () do in javascript?
Tell me how can we define a variable accessible in functions of a php script?
Is php dead 2019?
Tell me what is needed to be able to use image function?
What is data type in php?
What is the basic syntax of Php?
How to execute a php script from the command line?
What is warning – “cannot modify header information – headers already sent”?
Does php has a future?
how to track no of users logged in?