Jump to content

Problem with Server side php script to recieve json messages


rager

Recommended Posts

I am having a problem in receiving data in php in json format

I have a client page which will send a json request with the following headers

Content-type : application/json

Accept : text/plain

The Json message contains the following fields

'photo' : a jpeg image (binary)

'title' : title of the photo (text)

'comment' : comments on the photo (text)

 

can someone enlighten me on how do I write a simple server-side script in php to decode the Json file and just save the photo and print out the title and comment?

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.