I have a PHP application used this commands:
ini_set("allow_url_fopen", true);
$json = file_get_contents('php://input');
Because the data is sent by the Android system.
What is sent to PHP is a JSON, after receiving a parse and valid the json information
I would like to know if this is the best way to receive the data, what kind of security can I implement?