<?php $vison=$_GET['vison']; $name=$_GET['name']; $path=dirname(__FILE__).'/'.$vison.'/'.$name; function downfile($fileurl,$filename) { ob_start(); header( "Content-type: application/octet-stream "); header( "Accept-Ranges: bytes "); header( "Content-Disposition: attachment; filename= {$filename}"); $size=readfile($fileurl); header( "Content-length: " .$size); } downfile($path,$name); ?>
- 随机文章
- 热门文章
- 热评文章
- C#获取机器码的方法详解(机器名,CPU编号,硬盘编号,网卡mac等)
- C#中的MessageBox消息对话框
- ESP8266在Eclipse下设置编译模式(有boot和无boot)
- 物联网 WIFI 一键配置原理(smartconfig) ESP8266/QCA4004
- C#实现邮件发送的功能
- php做下载连接/下载功能
- 单片机时钟周期,机器周期,指令周期的区别
- 网站加载动画/预加载loading动画,再载入内容