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 […]

Top 5 PHP Security tips

Top 5 PHP Security Tips

PHP Security: Top 5 tips Input data validation 1) input data validation is an integral part while developing an application. It is easy to hack your application if there is no data validation in place for user inputs. Make sure you validate the data executed by eval() if you ever want to use eval() in […]