Hide PHP error log

Asked

Viewed 37 times

1

I’m accessing a PHP application, I do it with ajax, but I want to have control of every error issued, that is, I do not want the php Return the error to me.

I tried to use

error_reporting(0);
ini_set(“display_errors”, 0 );

But I didn’t get any results. The error is being released on console of the application I use to access.

How do we do this? In my code I removed all echos, print_r and others that gives some return of error.

  • 1

    How is configured to display errors in php.ini?

  • 1

    Which error appears in the browser console?

  • 1

    I could fix it, just change the displayy_errors = off

  • What file are you putting the error_reporting()?

1 answer

4


Search your php.ini and alters of

display_errors = on

for

display_errors = off

Browser other questions tagged

You are not signed in. Login or sign up in order to post.