开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜