I have an android app that communicates with a php script that do some database operations.My problem is that i need to prevent the server from echoing to the app any server errors or warnings.I know there will be security issues if someone see any sensitive data in those errors.I tried a lot of things wrote in some posts like turn off error display in php.ini,error_reporting(0),ini_set("display_errors", 0) and ini_set("log_errors", 1)`.I triger some errors and i keep getting something like "received
Parse error: syntax error, unexpected ......in
line...".
I don't know if I miss something.I am new to php and serverside things so if its something stupid forgive me.
I must say again that i dont need a solution for the errors....because i trigger them on purpose.I only need to prevent someone that use my application to see sensitive data from errors that may occure.