Contents

조회 수 7382 댓글 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. [php] 웹 응용프로그램(engines) 모음

    Date2013.04.23 CategoryDevelop Byhooni Views7520
    Read More
  2. 해커스랩 깨기.. 후후.. ㅋㅋ

    Date2013.04.23 CategorySystem/OS Byhooni Views18419
    Read More
  3. [c] 간단한 점 이동 샘플 소스코드

    Date2013.04.23 CategoryDevelop Byhooni Views6546
    Read More
  4. [php] 웹 터미널 & 업로드 소스..

    Date2013.04.23 CategoryDevelop Byhooni Views7223
    Read More
  5. [c] 도스 공격(DoS Attack) 프로그램

    Date2013.04.23 CategoryDevelop Byhooni Views11580
    Read More
  6. [c] 콘솔에서 패스워드 입력시 문자 보이지 않게 하는 코드

    Date2013.04.23 CategoryDevelop Byhooni Views8331
    Read More
  7. [c++] MD5 구현 소스.. 퍼움..

    Date2013.04.23 CategoryDevelop Byhooni Views24075
    Read More
  8. [c] 무선 Radius Server 자료..

    Date2013.04.23 CategoryDevelop Byhooni Views7265
    Read More
  9. [c++] WinSock2.0 채팅 프로그램 ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views8526
    Read More
  10. [c++] 소켓 프로그래밍 관련 링크.. (퍼올려고 올린거)

    Date2013.04.23 CategoryDevelop Byhooni Views7033
    Read More
  11. [c] 퀵정렬(quick sort) 예제 소스..

    Date2013.04.23 CategoryDevelop Byhooni Views7978
    Read More
  12. [c] 확인해 볼거.. ㅡ,.ㅡ;

    Date2013.04.23 CategoryDevelop Byhooni Views7149
    Read More
Board Pagination Prev 1 ... 19 20 21 22 23 24 25 26 27 28 ... 98 Next
/ 98