아래 함수 포함해서 헤더 바꿔서 읽음..
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 |
---|---|---|---|---|---|
373 | Develop |
[c] kmp 활용 search
![]() |
hooni | 2013.04.23 | 7430 |
372 | Develop | [js] 자바스크립트 메뉴얼 사이트.. ㅋㅋ | hooni | 2013.04.23 | 7426 |
371 | Develop |
[c++] mfc로 만든 월플렉스 멀티 수납 시스템(2D기반 설계)
![]() |
hooni | 2013.04.23 | 7423 |
370 | Develop | [c] 시간(요일,날짜 포함) 출력하는 프로그램 초간단 코드 | hooni | 2013.04.23 | 7417 |
» | Develop |
[php] 무조건 다운로드 받도록 header 세팅
![]() |
hooni | 2013.04.23 | 7416 |
368 | Develop |
[jsp][php] LDAP 프로그래밍..
![]() |
hooni | 2003.04.23 | 7413 |
367 | Develop |
[c] KNN(K-nearest neighbor) 패턴인식 과제..
![]() |
hooni | 2013.04.23 | 7410 |
366 | Develop |
[c] 문자열 치환해주는 str_replace() 함수
![]() |
hooni | 2013.04.23 | 7410 |
365 | Develop |
[c] 농구팀 점수 산출 프로그램 소스
![]() |
hooni | 2003.04.23 | 7404 |
364 | Develop |
[c] 게임 AI FSM 테스트 샘플 소스.. 꽤 괜찮은 소스..
![]() |
hooni | 2013.04.23 | 7395 |
363 | Develop |
[c] 스택/힙 오버플로우 테스트(overflow)
![]() |
hooni | 2003.04.23 | 7390 |
362 | Develop |
[js] 빈도우즈(bindows96)
![]() |
hooni | 2013.04.23 | 7390 |