How To Build Business Directory Using Php Mysql?

I want to create MMOG.for frontend i am using playn and for backend i am using php/mysql. now i have to build first json web service in backend. i am unable to understand how json can help me.i dont know json.please help me?

  • i want to learn how i can implement json with my php/mysql

  • Answer:

    I think you may have some wires crossed here. JSON is a standard and simple way to represent hierarchical data structures in text. As such it's useful for sending data structures over a socket. See: http://www.json.org/ PHP is a programming language, which (among many other things) has support for encoding and decoding JSON to and from structures. See: http://php.net/manual/en/book.json. So, one might keep state in the database (or in the server's memory for locations and other transient information), and send this data to the client occasionally (or on demand) via a socket (or in response to an HTTP request). The format of this data would be a JSON string representing the data. I hope that helps you out. The question is very open ended.

Shannon Posniewski at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.