PHP Upload File to FTP Asynchronously
Posted on 2006-03-22
I've done plenty of uploading files to FTP servers with PHP, but only from my web host to the FTP server. Is it possible to send a file straight from the browser to the FTP server? Or more likely, start sending a file to the FTP server, while it's still being upload to the web server from the browser?
I did some reading on ftp_nb_fput, and it almost seems like it would be possible for PHP to open the temporary file as it's being uploaded to the web server, and start sending it to the FTP server before it's done downloading.