mds1256 Posted June 29, 2013 Share Posted June 29, 2013 Hi I have a scenario which I want to be able to post JSON data to a php page which can then parse this. I am learning how to make a mobile app (iOS) and wanting to POST a JSON response to a web service using PHP on the server to then parse this JSON response and allow PHP to do what ever it needs. Any ideas how I can make a PHP page that will receive a POSTed JSON object and work with it? Thanks Link to comment https://forums.phpfreaks.com/topic/279688-posting-a-json-reponse-to-a-php-page-help/ Share on other sites More sharing options...
boompa Posted June 29, 2013 Share Posted June 29, 2013 For a simple test, try creating a page -- to which you will POST -- like this: See here for more info on the argument EDIT: BAH! The forum keeps eating my response. The function you want is file_get_contents(). The argument to that is the second one on that page I liked to (the one that doesn't start with std) Link to comment https://forums.phpfreaks.com/topic/279688-posting-a-json-reponse-to-a-php-page-help/#findComment-1438503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.