php

How to display PHP errors in code output?


When executing a PHP page through browser , we will just get the output but not the errors in code.

how can i view the errors occurred by the code in the backend??

I am using the following in the code for error reporting..

error_reporting(E_ALL | E_ALL);

Solution

  • ini_set('display_errors', 1);
    error_reporting(E_ALL ^ E_NOTICE);