PHP implements file transfer between different servers

Source: Internet
Author: User
PHP implements file transfer between different servers. I want to design A button on the local host. click the button to upload the selected data to server A and save it, then, upload the files saved by server A to website B. Then, return A file from website B and download it to server A and local one in sequence. I have implemented the communication function from local to server, I don't know what functions or methods in php can be used to automatically implement layer 2 communication. thank you for your advice! ------ Solve the problem of file transfer between different servers in PHP
I want to design A button on the local host. click the button to upload the selected data to server A for storage, and upload the file saved by server A to server.
In website B, A file is returned from website B and downloaded to server A and server A in turn. I have implemented the communication function from local to server, I don't know what functions or methods in php can be used to automatically implement layer 2 communication. thank you for your advice!

------ Solution --------------------
Use the header to send data to website B, depending on the specific situation, for example, the method in which Website B receives the data, the size of the file, and the type of the file.
------ Solution --------------------
I don't know what you want to do,
Creating a file server does not solve all problems.
If one cannot be solved, multiple file servers are designed for data synchronization.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.