I want to make a desktop application (Delphi) and an online PHP script. Each desktop application sends some unique identifiers to the PHP script and expects an answer (a record of data) from it. The record of data is generated instantly by the PHP script based on the unique identifier received.
I know enough to do the Delphi part, but I don't know much PHP. Can anybody give me some general lines about how I POST and retrieve data back from the PHP script?
Thanks
EDIT:
I am thinking at something like:
Desktop -> function SendID
PHP -> generate data (and make it persistent)
Desktop -> function GetDataBack
The only idea that pops in my mind is to make the PHP script create a file that has the same name as the ID received from the desktop application. Then the desktop app downloads this file and signal the server that the file can be deleted from the server.