TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Advanced PHP Programming (http://www.talkphp.com/advanced-php-programming/)
-   -   Upload files to a different server (http://www.talkphp.com/advanced-php-programming/5102-upload-files-different-server.html)

Geert 11-09-2009 08:55 PM

Upload files to a different server
 
Is it possible to upload files to a physically different server? The idea is to have a dedicated file server where all files are stored and managed.

I have no idea whether this is possible, let alone how to pull it off. It's a client request. Any clues? Thanks.

adamdecaf 11-09-2009 11:43 PM

Well, you could convert the file into base64 and send it in a XMLHttpRequest. The server could then convert the string back into the file and store it there.

ETbyrne 11-10-2009 01:15 AM

You could send the file via a HTTP request using cURL.

delayedinsanity 11-10-2009 02:10 AM

If it's a dedicated file server, what about using FTP?

PHP FTP

Geert 11-10-2009 06:30 AM

Thanks for your suggestions! I'm most interested in the PHP FTP library. Just wasn't aware of its existence. Gave it a little try already and it seems to work like a charm. Very easy to use, and probably the fastest of the three suggestions too, right?

Moreover, I forgot to mention the connection needs to be secure. Seems like ftp_ssl_connect() will come in really handy then.


All times are GMT. The time now is 05:55 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0