Contents

Views 7413 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
97 Develop [c] 시간 관련 함수 설명과 예제.. file hooni 2003.04.23 11546
96 Develop [c] 문자열 처리 관련 함수들 설명 hooni 2003.04.23 8011
95 Develop [linux] 프로세스 관련 시스템콜 hooni 2003.04.23 7866
94 Develop [c] 시간 계산 하는 프로그램 소스코드 file hooni 2003.04.23 6770
93 Develop [php] 마시마로 캐릭터 방명록 file hooni 2003.04.23 8266
92 Develop [c] OpenGL 색 입방체의 회전(입체) hooni 2003.04.23 7892
91 Develop [c] 신기한 atoi함수(www.game79.net) hooni 2003.04.23 7286
90 Develop [c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java) file hooni 2003.04.23 7027
89 Develop [js] 점점 커지는 새창.. hooni 2003.04.23 7019
88 Develop [c] OpenGL 마우스 이벤트 hooni 2003.04.23 8752
87 Develop [js] 사라지는 브라우저 hooni 2003.04.23 6877
86 Develop [js] 이벤트 핸들러(Event Handlers) hooni 2003.04.23 6748
Board Pagination Prev 1 ... 58 59 60 61 62 63 64 65 66 67 ... 71 Next
/ 71