Tuesday, June 12, 2012

Error Reporting with PHP

I often find myself needing to display the errors and warnings for my php scripts. A quick and easy way of doing this is adding the following lines of code to the top of your php page.

error_reporting(E_ALL);
ini_set('display_errors', '1');

No comments:

Post a Comment