Upload file to object, then ftp object to server with PHP
Posted on 2013-01-14
Ok, This is going to sound idiotic, but it's how I tend to handle a lot of things.
I want to upload files to an FTP server with my website. So, the webpage will have the file-upload script, but instead of saving it to that webserver, I want to keep it in memory, open up an FTP connection to my FTP server, then push the object over to that.
Basically... I never ever write anything to any of my web servers.
Unfortunately, I spend 99.9999% of my time using .Net and storing my files on Amazon S3, and could have had this done in about 20 minutes, but this client is insisting on PHP and FTP.
so... any ideas?