I am trying to read in a JSON message in my PHP app and this is my php code:
$json = file_get_contents(\'php://input\'); $obj = json_decode($json, TRUE); ech
The problem may be form php://input (is a read-only stream that allows you to read raw data from the request body). change some setting from php.ini , try to make "allow_url_fopen" on.