<?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); ?>
随机文章
热门文章
热评文章
- php接收post乱码解决
- 在树莓派/linux上使用阿里云DNS解析作为DDNS使用
- C#图像处理(各种旋转、改变大小、柔化、锐化、雾化、底片、浮雕、黑白、滤镜效果)
- 安装包制作工具 SetupFactory使用1 详解
- 安装包制作工具 SetupFactory使用2 API清单
- C#中的MessageBox消息对话框
- 单片机时钟周期,机器周期,指令周期的区别
- 电脑微信双开,多开