in reply to Send files via SSH ?

And don't forget, that you can always call your server's SCP command:

system('/usr/bin/scp', $src_path, "$dst_host:$dst_path");