How to read file from another FTP host without use host bandwidth transfer

前端 未结 1 694
陌清茗
陌清茗 2021-01-29 01:15

I have a host for store data and a download host (this host doesn\'t have database). I want to read a file from download host in store host and

相关标签:
1条回答
  • 2021-01-29 01:43

    There's no way to download a contents from the "download host" directly to the client, without providing the client with all the information needed for the download ("download link").

    If you need to hide the download information from the client, you need to download the file on the "store host" and then forward it to the client. Hence you are consuming bandwidth data of the "store host". It does not matter what technology, protocol or function you use. And the ftp_get and file_get_contents("ftp://...") use both the same code behind anyway.

    Simply said, there's no way to both hide the download information from the client and not use bandwidth data of the "store host".

    0 讨论(0)
提交回复
热议问题