Contents

Views 7415 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");
        }
}


?

  1. [php] XE에서 도메인 별로 광고 다르게 적용하기

  2. [php] 그래프 그리는 프로그램..

  3. [php] 날짜 정보 출력 (년,월,일,시,분,초)

  4. [php] 논문 관리 프로그램.. ㅋㅋ

  5. [php] 니우쪽지다.. 받아라~ ^^

  6. [php] 데이터를 엑셀,워드 형태로 변환할 때 헤더(ms-office)

  7. [php] 마시마로 캐릭터 방명록

  8. [php] 메모장 - 웅지학원 ([c] mysql 백업프로그램 포함)

  9. [php] 몽이가 준 ajax 채팅 소스 ㅋㅋ

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

  11. [php] 배열 관련 함수 설명 ㅎㅎ

  12. [php] 빔 프로젝터 예약 프로그램.. ㅋㅋ

Board Pagination Prev 1 ... 75 76 77 78 79 80 81 82 83 84 ... 98 Next
/ 98