php -> send file to remote -> remote execute -> remote sends file back
How can i do this?
User loads a page. Uploads a file. File has to be send to remote server. R开发者_如何转开发emote server executes series of commands. Remote server sends file back.
EDIT:
I need to copy file from shared hosting server to VPS box. I managed to login via ssh without passwords from both servers. How to copy file to remote server via ssh? I'm using rsync/cron for syncing/backup some folders but i don't think rsync is not a good idea for this. need another idea.
You can also use cURL to upload a file from this server to another. E.g. like it is done here
精彩评论