Views 7380 Votes 0 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
677 Develop [ios] iOS In App Purchase #1 (코드 구현 전 웹 설정 작업) file hooni 2013.11.20 14510
676 Develop [ios] iOS In App Purchase #2 (코드 구현) file hooni 2013.11.20 13768
675 Develop [ios] iOS In App Purchase 코드 부분 샘플 1 hooni 2013.11.20 11760
674 Develop [ios] iOS In App Purchase 코드 부분 샘플 2 hooni 2013.11.20 11276
673 Develop [ios] iOS 사운드 관련 프레임워크 hooni 2014.04.18 3013
672 Develop [ios] iOS 앱 아이콘을 만드는 유틸 file hooni 2015.01.03 869
671 Develop [ios] iOS 의 인앱구매 소개 file hooni 2014.04.29 3825
670 Develop [ios] iOS앱의 Xcode 빌드 과정 file hooni 2015.01.03 2275
669 Develop [ios] iOS에서 디바이스 종류 알아오기 hooni 2014.05.24 3645
668 Develop [ios] iphone SetDeviceOrientation 화면 강제 회전 hooni 2013.11.20 18460
667 Develop [ios] libxml/tree.h file not found file hooni 2013.08.08 18708
666 Develop [ios] Locale Identifiers file hooni 2018.11.29 1623
665 Develop [ios] NavigationController 에서 왼쪽(back) 버튼 후킹하기 hooni 2015.10.23 1180
664 Develop [ios] None IB vs. StoryBoard 샘플 소스 file hooni 2013.09.06 16924
663 Develop [ios] NSData to NSString (NSString to NSData) hooni 2015.07.21 634
662 Develop [ios] NSData 클래스에 대해 (NSData <-> char*) hooni 2013.04.23 26569
Board Pagination Prev 1 ... 30 31 32 33 34 ... 74 Next
/ 74