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
393 Etc [link] 유용한 사이트 링크. hooni 2013.08.19 71451
392 Develop [ios] 앱에서 다른 앱 실행시키기 file hooni 2013.09.05 18528
391 Develop [ios] None IB vs. StoryBoard 샘플 소스 file hooni 2013.09.06 16924
390 Develop [python] 애니팡, 캔디팡 매크로 file hooni 2013.09.06 17310
389 Develop [ios] Hybrid 앱 스터디 발표 자료 file hooni 2013.09.06 13705
388 Etc 영어. 외우면 도움되는 필수영어회화 표현 file hooni 2013.09.09 20940
387 Develop [ios] 간단한 방법으로 OS버전 확인하기. hooni 2013.09.24 13306
386 System/OS [mac] SVN 1.8 업데이트 방법 hooni 2013.09.24 14561
385 Etc [svn] 콘솔에서 svn 사용시 레티나용 이미지 add 안될 때.. hooni 2013.09.25 37490
384 Develop [ios] UIView에서 상위 UIViewController 가져오기 hooni 2013.09.27 20153
383 Develop [ios] GCD 변수 사용 예제 hooni 2013.10.01 12110
382 System/OS [linux] 우분투 APM + phpmyadmin 설치 hooni 2013.10.07 49321
Board Pagination Prev 1 ... 61 62 63 64 65 66 67 68 69 70 ... 98 Next
/ 98