Troubleshooting and Debugging techniques for PHP programmers

PHP Trouble Shooting & Debugging

First thing to do while troubleshooting your code is enabling error reporting.You can start by including the below two lines of code at the start of your PHP script. ini_set(‘display_errors’,1); error_reporting(E_ALL); There are four types of errors in PHP. 1. Syntax ErrorsSyntax errors are caused by typo in your code. A missing semicolon, parenthesis or […]