Contents

조회 수 7380 댓글 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");
        }
}


?

  1. [c] KNN(K-nearest neighbor) 패턴인식 과제..

  2. [jsp][php] LDAP 프로그래밍..

  3. [c] 문자열 치환해주는 str_replace() 함수

  4. [c] 농구팀 점수 산출 프로그램 소스

  5. [php] 무조건 다운로드 받도록 header 세팅

  6. [c] 게임 AI FSM 테스트 샘플 소스.. 꽤 괜찮은 소스..

  7. [js] 빈도우즈(bindows96)

  8. [linux] 임베디드 리눅스 (embedded linux)

  9. [ios] How To Use UIScrollView to Scroll and Zoom Content (Using Swift)

  10. [asp] 폼 메일 소스

  11. [c] 스택/힙 오버플로우 테스트(overflow)

  12. [c/c++] Makefile 사용하기.. ㅋㅋ

Board Pagination Prev 1 ... 54 55 56 57 58 59 60 61 62 63 ... 98 Next
/ 98