I need to write a script to upload big Files (~2GB+) to a server. I don't think HTTP is the right way to do this so I want to use (S)FTP. There are several tutorials about this (using cURL or ftp_connect) and I understand that i have to set several things in the php.ini.
But all this tutorials upload the file to a remote
Server, what I want to do is upload it to the Server the script is running on, without having to upload the file to the Server over HTTP first.
Is this possible? If so, how would I do that?