<?
$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;

?>

ㅇㅋ 바로 이걸원했어!

2007/07/31 03:09 2007/07/31 03:09

trackback url :: http://cranix.net/tt/trackback/215

댓글을 달아 주세요

write a comment