Skip to content

Commit

Permalink
去掉一个项目中未使用的函数 downfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
gongwen committed Aug 19, 2015
1 parent ce4c05c commit 925c8f2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions MinPHP/core/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,6 @@ function baseUrl(){
return $protocol.$hostName.$pathInfo['dirname']."/";
}

//下载html
function downfile($fileName){
$fileName = '路径+实际文件名';
//文件的类型
header('Content-type: application/pdf');
//下载显示的名字
header('Content-Disposition: attachment; filename="保存时的文件名.pdf"');
readfile("$fileName");
exit();
}

/**
* @dec 下载文件 指定了content参数,下载该参数的内容
* @access public
Expand Down

0 comments on commit 925c8f2

Please sign in to comment.