2

I am wondering why my http://localhost/ server is not displaying any error? I am throwing errors like "require(abc.php);" which doesn't exists,

Tried throwing every error, but either screen goes blank or the actual output comes, but no error is reported.

I also wrote error_reporting(E_ALL); on top of the file, but still, can't figure out.

Thompson
  • 1,954
  • 10
  • 33
  • 58

2 Answers2

3

You should look to your php.ini if the "display_errors" is set to "1" or you can set the variable over php with:

ini_set('display_errors', 1);
René Höhle
  • 26,716
  • 22
  • 73
  • 82
2

try to set

ini_set('display_errors', '1');

as well.

Daxcode
  • 424
  • 3
  • 7