Resumable downloads when using PHP to send the file?

后端 未结 13 1078
梦毁少年i
梦毁少年i 2020-11-22 12:22

We are using a PHP scripting for tunnelling file downloads, since we don\'t want to expose the absolute path of downloadable file:

header(\"Content-Type: $ct         


        
13条回答
  •  Happy的楠姐
    2020-11-22 13:05

    Thanks Theo! your method did not directly work for streaming divx because i found the divx player was sending ranges like bytes=9932800-

    but it showed me how to do it so thanks :D

    if(isset($_SERVER['HTTP_RANGE']))
    {
        file_put_contents('showrange.txt',$_SERVER['HTTP_RANGE']);
    

提交回复
热议问题