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.