I need to set up a server that will accept some text from my app then return a number/code to the app. The number should then be able to be used to retrieve the text that was originally sent to the server.
App Server
Text. ->
<- number
OR
Number ->
<- text
I’m really not sure how to start with this, so my question is, How should I go about this? And how should I get started? My knowledge of this sort of server implementation is quite limited.
This is how I’d imagine it would work:
Apache server?
Php script to read text/ generate code to send back
App would send/receive data using POST?
Yes will use Post.
You need to store text in database and generate a random number and store this number along with text in database as well as send same number in response. These numbers can be used for getting respective text stored in database.
Let me know if this is what you were expecting. If you want some code sample let me know.