My intention is for the local server to query data on an external server. I wonder how I could get the external server to wait for the local connection, and depending on that local connection, make different decisions.
Example: I have 2 clients and 1 server, I need to connect these clients to the server and the server must respond differently to each client. How can I do this only with php and javascript? The logic I know, I do not know is how to make that connection.
I'm not asking for ready code, I just want to know the means of how to do it.