Jump to content

posting a json reponse to a php page - help


mds1256

Recommended Posts

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

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)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.