What is the best way to move files from one server to another with PHP?

前端 未结 4 420
灰色年华
灰色年华 2020-12-29 16:16

I want to setup a CRON that runs a PHP script that in turn moves XML file (holding non-sensitive information) from one server to another.

I have been given the prop

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 16:47

    If both servers would be on Linux you could use rsync for any kind of files (php, xml, html, binary, etc). Even if one of them will be Windows there are rsync ports to Windows.

提交回复
热议问题