Hide PHP error log

1

I am accessing a PHP from an application, I do this with ajax , however I want to have control of any error emitted, ie I do not want php to return the error for me.

I tried to use

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

But I had no results. The error is being thrown in the console of the application I use to access.

How to do this? In my code I remove all echos , print_r and others that give some error return.

    
asked by anonymous 07.12.2015 / 12:14

1 answer

4

Search your php.ini and change from

  

display_errors = on

for

  

display_errors = off

    
07.12.2015 / 12:36