Contents

조회 수 8385 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
아래 함수 포함해서 헤더 바꿔서 읽음..
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
번호 분류 제목 글쓴이 날짜 조회 수
973 Develop [c++]현승이가 보내준 동영상 암호화 자료.. 볼것.. file hooni 2003.04.23 11049
972 Develop [c++]현승이가 보내준 암호화 모듈 AES라인델.. file hooni 2003.04.23 11546
971 Develop [c/c++] Makefile 사용하기.. ㅋㅋ hooni 2003.04.23 8345
970 Develop [chm] C++ 문법 가이드 file hooni 2013.04.23 8930
969 Develop [chm] Programming Applications for Microsoft Windows file hooni 2013.04.23 10999
968 Develop [chm] 비주얼 C++ 팁 모음 문서 file hooni 2013.04.23 8594
967 Develop [chm] 윈도우즈에서 디버깅 기법(Debugging Applications) file hooni 2013.04.23 8549
966 Develop [coding] Find all anagrams in a string hooni 2017.06.27 3846
965 Develop [coding] 공부해야 하는거 ㅋㅋ secret hooni 2017.06.27 0
964 Develop [css] z-index에 설정할 수 있는 최대값? hooni 2013.12.20 15952
963 Develop [css] 스크롤바 안생기게 hooni 2003.04.23 11523
962 Develop [css] 화면 스크롤 제어 ㅋㅋ hooni 2003.04.23 9688
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 ... 99 Next
/ 99