PHP Remote file streaming with Resume Support

前端 未结 3 1285
清酒与你
清酒与你 2020-12-07 23:53

Firstly, I am aware of similar question being asked before.

The subject pretty much explains the question but still,

the file is hosted on another server, th

3条回答
  •  不思量自难忘°
    2020-12-08 00:02

    What's the purpose of this? hiding urls only or just allowing members to download?

    The way you described it, it's a bit tricky ...

    1. The remote server your script will download from should support resuming downloads.
    2. Your php script should check for 'Accept-Range' header & pass it through to the remote server (using sockets is your best option I guess) so your script is actually acting as a proxy.

提交回复
热议问题