아래 함수 포함해서 헤더 바꿔서 읽음..
function printDownloadHeader($filename, $filesize) { global $HTTP_USER_AGENT; if( eregi("(MSIE 5.0|MSIE 5.1|MSIE 5.5|MSIE 6.0)", $HTTP_USER_AGENT) ) { if(strstr($HTTP_USER_AGENT, "MSIE 5.5")) { header("Content-Type: doesn/matter"); header("Content-Length: $filesize"); header("Content-Disposition: filename=$filename"); //header("Content-Transfer-Encoding: binary"); header("Expires: 120"); header("Cache-Control: cache, must-revalidate"); } if(strstr($HTTP_USER_AGENT, "MSIE 5.0")) { header("Content-type: file/unknown"); header("Content-Length: $filesize"); header("Content-Disposition: filename=$filename"); header("Expires: 120"); header("Cache-Control: cache, must-revalidate"); } if(strstr($HTTP_USER_AGENT, "MSIE 5.1")) { header("Content-type: file/unknown"); header("Content-Length: $filesize"); header("Content-Disposition: filename=$filename"); header("Expires: 120"); header("Cache-Control: cache, must-revalidate"); } if(strstr($HTTP_USER_AGENT, "MSIE 6.0")) { header("Content-type: file/unknown"); header("Content-Length: $filesize"); header("Content-Disposition: filename=$filename"); //header("Content-Transfer-Encoding: binary"); header("Expires: 120"); header("Cache-Control: cache, must-revalidate"); } } else { header("Content-type: file/unknown"); header("Content-Length: $filesize"); header("Content-Disposition: filename=$filename"); header("Expires: 120"); header("Cache-Control: cache, must-revalidate"); } }
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
225 | System/OS | [switch] 시스코 스위치 관리자 암호 초기화 방법 | hooni | 2013.04.23 | 17293 |
224 | Develop | [c++] 문자열 뒤집기(문자열 거꾸로 출력) | hooni | 2013.04.23 | 17325 |
223 | Develop | [c] 팩토리얼 서버/클라이언트.. | hooni | 2003.04.23 | 17332 |
222 | System/OS | [windows] 패스워드를 잊어먹었을때.. | hooni | 2003.04.23 | 17368 |
221 | System/OS | [linux] 메일서버 세팅정보(sendmail) | hooni | 2003.04.23 | 17486 |
220 | Develop | [c] ICMP 패킷을 이용한 장난감 | hooni | 2003.04.23 | 17500 |
219 | System/OS | [linux] 최소한의 커널 설정(커널설치 전체과정) | hooni | 2003.04.23 | 17521 |
218 | PPT | [php] 프레임워크 발표자료 및 샘플 구현 소스 | hooni | 2013.04.23 | 17553 |
217 | System/OS | [switch] 시스코 카탈리스트(Cisco Catalyst) 기본 설정 | hooni | 2013.04.23 | 17578 |
216 | Etc | GSM에서 음성이 실리는 과정 요약.. | hooni | 2013.04.23 | 17591 |
215 | System/OS | 무선 인증 서버.. 김도.. ㅋㅋ | hooni | 2013.04.23 | 17709 |
214 | System/OS | 네트워크별 MTU(최대 전송 단위) | hooni | 2013.04.23 | 17719 |