<a href="/student/stureg/downregcase" ><img src="http://images.cnblogs.com/reg/bmb.jpg" width="183" height="45"/></a>
//下载
function downregcaseAction(){
file="upload/regcase.jpg";if(isfile(file="upload/regcase.jpg";if(isfile(file)) {
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename(file));readfile(file));readfile(file);
exit;
}else{
echo "文件不存在!";
exit;
}
}
本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/3623782.html,如需转载请自行联系原作者