I want to make a desktop application (Delphi) and an online PHP script. Each desktop application sends unique identifiers to a PHP script and expects a response from it (data records). A data record is instantly generated by a PHP script based on the received unique identifier.
I know enough to make part of Delphi, but I do not know much PHP. Can someone give me some general lines on how I send POST and retrieve data from a PHP script?
thanks
EDIT:
I am thinking of something like:
Desktop -> SendID Function
PHP -> generate data (and make it persistent)
Desktop -> GetDataBack Function
The only idea that appears in my head is to make the PHP script create a file with the same name as the identifier received from the desktop application. The desktop application then downloads this file and signals to the server that the file can be deleted from the server.
source share