Contents

Views 7418 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
아래 함수 포함해서 헤더 바꿔서 읽음..
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");
        }
}


?

List of Articles
No. Category Subject Author Date Views
373 Develop [unix] Java 애플릿용 HTML 자동 생성 hooni 2014.02.19 8266
372 Develop [c] 문자열 정렬 함수 qsort() hooni 2003.04.23 8271
371 Develop [c] selec()를 이용한 입출력 다중화 file hooni 2013.04.23 8271
370 Develop [c++] 현승이가 준 메신저 소스.. ㅋㅋ file hooni 2013.04.23 8296
369 Develop [c] 이진트리(binary tree)의 운행.. hooni 2003.04.23 8299
368 Develop [c++] 레지스트리 편집하는 부분..ㅡㅡ; file hooni 2013.04.23 8299
367 Develop [swift] NotificationCenter 간단 예제 file hooni 2021.01.27 8333
366 Develop [js] 쿠키(cookie)에 대한 설명과 예제.. hooni 2003.04.23 8346
365 Develop [js] selectbox 선택 후 input 박스에 적용 hooni 2013.04.23 8346
364 Develop [c] 암호 알고리즘 소스.. file hooni 2013.04.23 8349
363 Develop [c] 콘솔에서 패스워드 입력시 문자 보이지 않게 하는 코드 file hooni 2013.04.23 8359
362 Develop [java] 채팅 프로그램.. swing 사용.. file hooni 2013.04.23 8369
Board Pagination Prev 1 ... 35 36 37 38 39 40 41 42 43 44 ... 71 Next
/ 71