TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-09-2009, 08:55 PM   #1 (permalink)
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default 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.
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote
Old 11-09-2009, 11:43 PM   #2 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

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.
__________________
My Site
adamdecaf is offline  
Reply With Quote
Old 11-10-2009, 01:15 AM   #3 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

You could send the file via a HTTP request using cURL.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 11-10-2009, 02:10 AM   #4 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

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

PHP FTP
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
Geert (11-10-2009)
Old 11-10-2009, 06:30 AM   #5 (permalink)
The Contributor
RegEx Guru 
 
Join Date: Dec 2007
Location: Belgium
Posts: 60
Thanks: 6
Geert is on a distinguished road
Default

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.
__________________
Kohana - PHP5 framework
Geert is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to upload all phpMySQL files on to the server shankar MySQL & Databases 1 04-12-2009 06:40 PM
Trying to upload files with PHP and Prototype AJAX EyeDentify General 6 01-19-2009 10:04 PM
how to upload and display flv files. sarmenhb General 0 04-20-2008 02:40 AM
Upload your own extensions to a server? Nor Advanced PHP Programming 5 11-07-2007 02:51 PM
Uploading Files with PHP daz Absolute Beginners 3 09-30-2007 06:23 PM


All times are GMT. The time now is 07:30 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design