Friday, September 21, 2012
1:35 PM

Display errors in PHP

Add below two lines to your PHP file to display errors

error_reporting(E_ALL);
ini_set('display_errors', '1');
Example:
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
//remaining code
.............
.............
.............
?>

0 comments:

Post a Comment