Resumable downloads when using PHP to send the file?

后端 未结 13 866
梦毁少年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条回答
  •  无人及你
    2020-11-22 13:26

    If you're willing to install a new PECL module, the easiest way to support resumeable downloads with PHP is through http_send_file(), like this

    
    

    source : http://www.php.net/manual/en/function.http-send-file.php

    We use it to serve database-stored content and it works like a charm !

提交回复
热议问题