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.