[code]<?
$fileDir = "해당디렉토리";
$completeFilePath=$fileDir./.$fileName;
$length = filesize($completeFilePath);
$size = $length;
header("Content-Type: application/ms-x-download");
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fileName");
header("Content-Transfer-Encoding: binary");

$fh = fopen($completeFilePath, "r");
fpassthru($fh);
exit;

?>[/code]


ㅇㅋ 바로 이걸원했어!

신고
by cranix 2007.07.31 03:09
| 1 |