从数据库中取得变量name,想实现文件夹中的文件名与name一一对应并提供下载功能.
1 回答

梦里花落0921
TA贡献1772条经验 获得超6个赞
1234$user_file='要下载的文件路径';header("Content-Type: application/force-download"); header("Content-Disposition: attachment; filename=".basename($user_file)); readfile($user_file);
- 1 回答
- 0 关注
- 793 浏览
添加回答
举报
0/150
提交
取消