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
What is the tags in PHP is not a valid way to begin and end a PHP code block?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
Is empty in excel?
How to get a total number of rows available in the table?
Where to put php files in apache server?
Explain the difference between php4 and php5.
Explain what are some new features introduced in php7?
What is the use of mysql_fetch_array in php?
How to create a text file in PHP?
why did u want to leave your past organisation?
Explain converting an object?
How can we get the error when there is a problem to upload a file?
Tell me how is it possible to propagate a session id?
Who is the father or inventor of php?
Is php 5.6 secure?