Contents

조회 수 7422 댓글 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");
        }
}


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
225 PPT [ppt] 네오웹 소프트.. 발표 자료 모음 file hooni 2003.04.23 12592
224 Develop [c] 문자열 라이브러리 최신버전 file hooni 2003.04.23 7222
223 Develop [js] 주민번호 생성기.. file hooni 2003.04.23 8177
222 Develop [c] 문자열 컨트롤 함수로 만든 프로그램들.. file hooni 2003.04.23 6802
221 Develop [php] 메모장 - 웅지학원 ([c] mysql 백업프로그램 포함) file hooni 2003.04.23 7034
220 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12460
219 System/OS [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ hooni 2003.04.23 13967
218 Database [mysql] error while loading shared libraries: libmysqlclient.so.10: hooni 2003.04.23 12732
217 System/OS [dos] 노트북 백업 스크립트 xcopy 명령 예제 hooni 2003.04.23 40874
216 Develop [js] 가운데 새창 뜨는 함수와 이벤트 hooni 2003.04.23 6744
215 Algorithm [algorithm] Greedy (탐욕 기법) hooni 2003.04.23 15175
214 System/OS [sql] alter table 쿼리 예제 hooni 2003.04.23 12523
Board Pagination Prev 1 ... 75 76 77 78 79 80 81 82 83 84 ... 98 Next
/ 98