<?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'); //要下载文件的真实路径
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'); //要下载文件的真实路径