I am trying to pass data from ios to server.
Php code :
<?php
$inputJSON = file_get_contents('php://input');
$data = json_decode($inputJSON, TRUE);
var_dump($data);
?>
This gives me string(0) ""
. I don't know whats the meaning of this.
echo $inputJSON; gives nothing
var_dump($inputJSON); returns string(0) ""
When i print the json-string it gives me a valid string
Please find the full codes of this problem in another question of mine