1
나는이 PHP 코드가
: 처음에핫 링크
header("Content-Type: application/vnd.ms-excel");
header("Content-Type: application/download");
header("Content-Length: ".filesize($path.$filename));
header("Content-disposition: attachment; filename=" . urlencode($filename));
readfile($path.$filename);
을, 내가 ASP에서 이것을 사용
<%
Response.AddHeader "content-disposition","attachment; filename=download.xls"
%>
내가 을 방지 "hotlink" too
파일이 컴퓨터에 저장되면 URL을 다른 사용자에게 전달할 필요가 없습니다. st 파일을 복사하십시오. –
일부는 다음과 같습니다. http://bytes.com/topic/asp-classic/answers/601802-chopping-file-while-sending-via-asp-response-binary-write. – celsowm