Longlands Posted April 29, 2008 Share Posted April 29, 2008 I'd like to know if this is possible - but don't even know how to go about looking it up! I have a script that runs fine on one of my domains, but for technical reasons I'd like it to call a function that resides on a different domain. I can see how I can simply divert the script on server 'a' to the new file on server 'b', but can't see how to get the server 'b' file to return with a value back to the point in the server 'a' script where it left off. Including the remote function won't work because I really need it to be run from a different IP address. It is entirely possible that I'm missing the obvious, but can anyone help me preserve the little remaining hair that I have? Thanks! Martin Link to comment https://forums.phpfreaks.com/topic/103365-running-a-script-across-multiple-servers/ Share on other sites More sharing options...
dptr1988 Posted April 29, 2008 Share Posted April 29, 2008 Here is how two servers can communicate with each other: Server A requests page_1 from Server B and includes a 'callback' URL pointing to a page on Server A Server B process the request and when it is finished, it sends a request to the 'callback' URL that it received from Server A Server A handles the 'callback' URL and is now communicating with Server B in response to Server B's request. I don't know if this is what you were thinking of, as I didn't understand your problem very well. Link to comment https://forums.phpfreaks.com/topic/103365-running-a-script-across-multiple-servers/#findComment-529595 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.