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 Quote Link to comment Share on other sites More sharing options...
Solution boompa Posted June 29, 2013 Solution Share Posted June 29, 2013 (edited) 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) Edited June 29, 2013 by boompa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.