Forum Moderators: coopster

Message Too Old, No Replies

Uploading files via PHP from one server to another

         

ntbgl

1:43 pm on Jun 21, 2008 (gmt 0)

10+ Year Member



I would love to have PHP generate a file not only on my server (which it does), but then to somehow put this file on another server too?

This server is completly seperate from the first.

Is this possible?

surrealillusions

2:31 pm on Jun 21, 2008 (gmt 0)

10+ Year Member



to my knowledge, i dont think it is possible...

coopster

2:35 pm on Jun 21, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yes. There are a number of ways to do this, FTP being one of the easiest, but also an insecure protocol. You can use secure FTP though.

barns101

2:35 pm on Jun 21, 2008 (gmt 0)

10+ Year Member



Perhaps you could upload the file to your server and then use the FTP functions [php.net] to transfer it to the destination server.

EDIT:
Coopster beat me to it!