$filepath = 'http://www.vip.com/down';
            $fp = fopen($filepath,"r");
            Header("Content-type: application/octet-stream");
            Header("Accept-Ranges: bytes");
            Header("Content-Disposition: attachment; filename=xxx.pdf");
            $buffer = 1024;
            while (!feof($fp)) {
            $file_con = fread($fp,$buffer);
                echo $file_con;
            }
            fclose($fp);    

 

相关文章:

  • 2021-11-28
  • 2022-01-27
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-03-04
相关资源
相似解决方案