Using ftp for recursive copying
Posted: Mon Jul 21, 2003 3:27 am
Hi all
I'm busy writing a php script that needs to copy files from one server to another. I would like the copy to be recursive like the cp -r option in linux. I can't use rsync becuase i'll have to set up a rsync server on every server that i need to use. I'm going to be doing is moving files between a variety of servers. Would it be possible to use the ftp function in php to do this ensuring the copy is recursive. I'm using redhat 9.0. I could maybe use SCP but this prompts you for a username and pasword and my script has no user interaction becuase its a server side script that runs in the background. Any suggestions!
I'm busy writing a php script that needs to copy files from one server to another. I would like the copy to be recursive like the cp -r option in linux. I can't use rsync becuase i'll have to set up a rsync server on every server that i need to use. I'm going to be doing is moving files between a variety of servers. Would it be possible to use the ftp function in php to do this ensuring the copy is recursive. I'm using redhat 9.0. I could maybe use SCP but this prompts you for a username and pasword and my script has no user interaction becuase its a server side script that runs in the background. Any suggestions!