Contents

Views 7380 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
757 Develop [ios] 구분자로 문자열 자르기 (split) hooni 2013.04.23 26271
756 Develop [node.js] nodejs 기본 설치 hooni 2013.04.23 26252
755 Develop [python] DJI Tello 드론 코딩 (프로그래밍) 58 file hooni 2018.03.04 25747
754 Develop GCM 사용하기 3 (JSP로 GCM 푸시 서버 만들기) 4 file hooni 2013.07.06 25315
753 Develop [c#] 웹문서 소스(html) 긁어오기 file hooni 2013.04.23 24506
752 Develop [c++] MD5 구현 소스.. 퍼움.. file hooni 2013.04.23 24070
751 Develop [ios] 아이폰 개발 총정리.. file hooni 2013.04.23 23863
750 Develop [pdf] GPS의 동작 원리 ㅎㅎ file hooni 2013.04.23 23832
749 Develop [c] 다중연결 서버 만들기 #4 - thread 사용 file hooni 2013.04.23 23702
748 Develop [c#] 비동기 통신 샘플 코드 ㅎㅎ file hooni 2013.04.23 23633
747 Develop GCM 사용하기 2 (단말에 GCM 구현하기) file hooni 2013.07.06 23248
746 Develop [ios] UIColor 지정에서 RGB define ㅎㅎ hooni 2013.04.23 22914
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 71 Next
/ 71