I have an "offline processing" server which charges me very little for cpu cycles and a "media serving" server which charges me very little for bandwidth. I have a ~1.3Mb zip file which the offline processing server generates and then sends over to the media serving server to actually host for download. The way I had been doing this was by having the offline processing server make the file on himself and ftp it over to the other one, but I had to move hosts and now the offline processing server doesn't have the ability to save files to itself.
My first thought was I can make a listening php script on the media serving server and then post the contents to that script which will save it into a zip file. Unzipped it is ~4.1Mb so would it be a good idea to post this much data? The second thing I thought of was streams in php... but I didn't know what would be best.
What is the best way for me to move this 4.1Mb of data from one server to the other when I can't save it as a file in the server which generates the data?