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,860
  • 8
  • 33
  • 56

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
  • 25,733
  • 22
  • 69
  • 78
2

try to set

ini_set('display_errors', '1');

as well.

Daxcode
  • 324
  • 2
  • 7