简体   繁体   English

在PHP中将数据从一台服务器传输到另一台服务器

[英]Transferring data from one server to another in php

我想将服务器数据库中的10个用户详细信息传输到另一台服务器。另一台服务器可以调用php页面(在我的服务器上),该页面可以提供所需的10个用户详细信息,这应以用户使用该站点的方式进行不能理解数据来自另一台服务器。

I will recommend using WebService for this purpose. 我将建议为此目的使用WebService。 In the Server A (provider) you will code this webservice to serve the users as requested by server B (consumer), So you will be able to consume the services provided by A at any time and being transparent for the USER. 在服务器A (提供者)中,您将对该Web服务进行编码,以按照服务器B (消费者)的请求为用户提供服务,因此您将能够随时使用A提供的服务,并且对用户透明。

替代文字


References: 参考文献:

您可以实现JSON-RPC服务器和客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM