[CODE] Header("Content-Disposition: attachment; filename=$filename"); Header("Content-Type: application/octet-stream"); Header("Content-Length: ".filesize("$filedir")); Header("Pragma: no-cache"); Header("Expires: 0"); if (is_file("$filedir")) { $fp = fopen("$filedir", "r"); if (!fpassthru($fp)) fclose($fp); } [/CODE]

'Computer > PHP' 카테고리의 다른 글

RSA 공개키 암호화 알고리즘 - PHP 구현  (0) 2005/04/29
다운로드 페이지  (0) 2005/04/21
PHP를이용한다중연결소켓통신3  (0) 2005/03/20
PHP를이용한다중연결소켓통신2  (0) 2005/03/20
Posted by 알찬돌삐

댓글을 달아 주세요