Uploading to another 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
crazycaddy
Forum Commoner
Posts: 43
Joined: Fri Aug 05, 2005 6:59 am
Location: England, UK

Uploading to another server

Post by crazycaddy »

Is it possible in php to use the standard upload method, to upload a file to another server on the network?
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

Possible?

Post by AnarKy »

You can upload and then FTP to another server.
crazycaddy
Forum Commoner
Posts: 43
Joined: Fri Aug 05, 2005 6:59 am
Location: England, UK

Post by crazycaddy »

not if they dont have an ftp server :o . Thats why I mentioned regular upload method :P
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

the only way they wouldnt have a ftp server would be if they ran the server off their own box and if they do then why not tell them to quickly make a easy ftp server?
User avatar
AnarKy
Forum Contributor
Posts: 119
Joined: Tue Nov 02, 2004 1:49 am
Location: South Africa

FileZilla Server

Post by AnarKy »

I used FileZilla Server for a project last year.
Good stuff :wink:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes it's possible, although you will not use the "standard" file uploading systems in php. You'd make a HTTP POST to the other server as if you were a user uploading the file.

cURL can be used for such a procedure.
Post Reply