조회 수 7422 추천 수 0 댓글 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. GSM에서 음성이 실리는 과정 요약..

    Date2013.04.23 CategoryEtc Byhooni Views17589
    Read More
  2. [js] 폼(form) 전송시 중복 클릭 방지 간단한 구문

    Date2013.04.23 CategoryDevelop Byhooni Views9329
    Read More
  3. [js] 사진첩에 쓸 내용 - 마우스 오버로 바꾸기

    Date2013.04.23 CategoryDevelop Byhooni Views6363
    Read More
  4. [sql] 간단한 통계 서브쿼리 예제..

    Date2013.04.23 CategoryDatabase Byhooni Views15177
    Read More
  5. [java] Sieve of Eratosthenes (에라토스테네스의 체)

    Date2013.04.23 CategoryDevelop Byhooni Views9353
    Read More
  6. [c] 유닉스 프로그램에서 인수처리 해주는 getopt() 함수

    Date2013.04.23 CategoryDevelop Byhooni Views8093
    Read More
  7. [c] pcapdump 파일 분석 하는 프로그램.. ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views6915
    Read More
  8. [php] 무조건 다운로드 받도록 header 세팅

    Date2013.04.23 CategoryDevelop Byhooni Views7422
    Read More
  9. [php] 자바스크립트 개판 만들기..

    Date2013.04.23 CategoryDevelop Byhooni Views7687
    Read More
  10. [js] 자바스크립트로 만든 게임

    Date2013.04.23 CategoryDevelop Byhooni Views8413
    Read More
  11. [js] 윤동이가 만든 영어 학습(?) 프로그램

    Date2013.04.23 CategoryDevelop Byhooni Views6481
    Read More
  12. [js] 밀리터리 프로그램(전역일 계산)

    Date2013.04.23 CategoryDevelop Byhooni Views8932
    Read More
  13. [js] 빈도우즈(bindows96)

    Date2013.04.23 CategoryDevelop Byhooni Views7397
    Read More
  14. [js] 후리자(영규) 스타일들..

    Date2013.04.23 CategoryDevelop Byhooni Views7180
    Read More
  15. [js] xsl 강의 자료

    Date2013.04.23 CategoryPPT Byhooni Views13212
    Read More
  16. [js] 여러가지 트리(tree) 모음.. ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views7137
    Read More
Board Pagination Prev 1 ... 48 49 50 51 52 ... 74 Next
/ 74