Uploading and retrieving files from a seperate server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jhorra
Forum Newbie
Posts: 24
Joined: Mon Aug 18, 2003 1:00 am

Uploading and retrieving files from a seperate server

Post by Jhorra »

We have second server that we would like to serve our videos and images from. I'm not entirely sure though how to handle the upload process to move them over to the other server, or how to link to those files. Can anyone provide any help or links to guides on this?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

You can upload by posting your upload form to that particular site (in theory... I've never tried this before). Coming back to your site would have to be done through the remote upload script.
Jhorra
Forum Newbie
Posts: 24
Joined: Mon Aug 18, 2003 1:00 am

Post by Jhorra »

Where I get confused is do I have to set up a shared folder on that server to be able to move the files over?
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

Not sure, but maybe this function will help you
http://www.php.net/ftp_put
Jhorra
Forum Newbie
Posts: 24
Joined: Mon Aug 18, 2003 1:00 am

Post by Jhorra »

I think that's going to work great! Now I just need to figure out how to set up an ftp server on that server.
Post Reply