Thursday 20 September 2012

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
.............
.............
.............
?>

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.