You can always use DAV , but some configuration on the receiving server may be required. There is also SSHFS , which makes it easy to mount the remote directory locally through the SSH tunnel, or simply use the ssh2_ * family of functions as Andy Shellam suggested .
Indeed, there are many ways to do this.
source
share