downloadzip.php

来源:互联网 发布:步人甲 知乎 编辑:程序博客网 时间:2024/06/06 07:36
<?php 
header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="apache-tomcat-7.0.63-windows-x86.zip"');
//$sql="select * from upload where id=1";
//$sql="update upload set click=click+1 where id=1";
//echo readfile('/u2mobile/apache-tomcat-7.0.63-windows-x86.zip'); //要下载文件的真实路径
//downloadzip.php
echo readfile('D:\apache-tomcat-7.0.63-windows-x86.zip'); //要下载文件的真实路径
0 0
原创粉丝点击