I have 2 websites (2 different domains/servers) and i need to transfer data between them. Source Server will be having an Array/ Array Object. Then it needs to be delivered to another site. I do not want the original Array to be malformed.
What i can think so far is, to use cURL from Destination Server and then, provide the Array Object as echo json_encode( $array ) from Source Server.
Will it work please? It is actually most likely a Web Service but i just don't know how to approach. What is your best suggestion please?
Note: Actually i do not have any restriction on the methods, or direction as well. Whether json_encode or cURL or whatever can be suggested, as long as the data reach to destination server. Thanks so much!