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!
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. Any suggestions
Then I recommend reading the links I provided.
I am 100% shure that those applications are included in the redhat distribution, though I don't use it myself.
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. Is thier a php function that could copy recursively.
PHP parses script pages. That's its purpose. PHP can USE other utilities. I suggest you check out whether you have openssh installed and use what's provided in there.
Then use scp or sftp instead. they are part of the OpenSSH toolkit and is very common to have installed.
read about it at the SSH page from the link above.
Why ssh?
Because you can set up "secure" connections without having to use passwords and all communication is encrypted. Today I disregard FTP since passwords are passed in plain text over the networks that are involved. SSH is a wonderful thing.