[An updated version of this code is now available!]
I had always been missing a system like this in Wordpress and Joomla (to install plug ins). This codes snippet lets to transfer files directly from one server to another without having to do a pesky job of downloading them to your computer first and uploading it afterwards.
Here is the code for the PHP part:
Please scroll down for the AJAX implementation of this code snippet.
The above code works fine except when the files are too large. If it takes too much time for PHP to copy the file, it simply halts transferring file due to browser’s connection timeout.
To tackle this problem I’ve created a full AJAX implemented version of this code, based on the ‘PHP file manager (AJAX demo)’ I posted earlier.
AJAX implementation:
The above code is just for concept, its better to get the AJAX version of this code snippet.
Download Source:
UPDATED v1.1: AJAX Server to Server direct file transfer v1.1 Source
OLD v1.0: Server to Server AJAX implementation FULL source code
Furture Plans:
- Add a progress bar to indicate file transferring progress.
- To fix all bugs
If you find any bug (and you might find some cause the coding was done in couple of hours) or problems please let me know. Comment below for anything!









Sir Ji, Can you plz do it fast I am waiting >-(