I'm not very expert to PHP. I want to know how to communicate between 2 web servers. For clearance, (from 1st Server) run a function (querying) on remote server. And return the result to 1st server.
Actually the theme will be:
Web Server (1)
----------------> Web Server (2)
---------------> Database Server
Web Server (1)
<---------------- Web Server (2)
<--------------- Database Server
Query Function()
will be only located on Web Server (2)
. Then i need to run that query function()
remotely from Web Server (1)
.
What is it call? And Is it possible?