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.

4
  • 1
    have you checked about ini_set('display_errors', 1); Commented Mar 25, 2012 at 17:34
  • Thanks, but still no error is shown on the page. I am crying. :( Commented Mar 25, 2012 at 17:37
  • oops, sorry, I forgot to restart apache. Now its working. Thanks a lot guys. Commented Mar 25, 2012 at 17:38
  • this question has already asked open the link here stackoverflow.com/questions/5438060/… Commented Apr 21, 2016 at 13:40

2 Answers 2

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);
Sign up to request clarification or add additional context in comments.

1 Comment

No problem. Sometimes its set to 0 in production environment.
2

try to set

ini_set('display_errors', '1');

as well.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.