如下所示:
//下载,添加响应头信息 header('Content-type:application/octet-stream'); header('Content-Disposition:attachment;filename="'.basename($file).'"'); header('Content-Length:'.filesize($file)); readfile($file);
上一篇:利用php怎么实现一个点击下载文件功能
下一篇:怎么在php项目中实现一个微信扫码登陆功能