Errors are the most common event a developer faces when programming. Errors can be categorized as syntactical, run-time, or logical: missing the semicolon at the end of a statement is an example of a syntax error; trying to connect to a database when the server is down is an example of a run-time error; providing incorrect data to a variable is an example of a logic error. To help reduce the number of errors in your code, and to mitigate their effects, proper error handling is essential in your web application. This article is a crash course in PHP error handling.

View the original here:
PHPMaster: Error Handling in PHP

Tags: ror
Sneha Heda has experience with Perl, PHP, Linux, MySQL, and MSSQL. She worked at Cognizant Technology Solutions with multinational clients, but the views presented here are not related to her job. She likes cooking and traveling.

No Reader comments

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.