 |
|
|  |
|
 |
15년 전 |
// 파일이 저장된 위치
$filepath = "파일이 저장되어있는 폴더명";
// 파일을 보내겠다는 헤더 전송
if(eregi("MSIE", $HTTP_USER_AGENT, $args)) {
header("Content-Type: dosen/matterrn");
header("Content-Disposition: filename=$filenamernrn");
header("Content-Transfer-Encoding: binaryrn");
}
else {
header("Content-Type: application/msdownloadrn");
header("Content-Disposition: attachment; filename=$filenamernrn");
header("Content-Transfer-Encoding: binaryrn");
}
// 파일 내용 전송
if (is_file($filepath)) {
$fp = fopen($filepath, "r");
if (!fpassthru($fp))
fclose($fp);
}
|
|
추천 : 875 |
추천
목록
|
|
|  |
|