테스트 사이트 - 개발 중인 베타 버전입니다

AjaxPlorer Ver 2.55 한글 업로드 및 다운로드

AjaxPlorer 2.55 한글 업로드 및 다운로드 가능토록 수정

Ajaxplorer

1. /server/conf/conf.php

$default_language="en"      =>> $default_language="ko" 로변경

 

2. server/classes/class.SystemTextEncoding.php

 

function getEncoding(){

...

}

 

함수 내에 setlocale(LC_CTYPE, 'ko_KR.eucKR'); 추가

ex)

function getEncoding(){
        global $_SESSION;
        // Check if the session get an assigned charset encoding (it's the case for remote SSH for example)
        if (isset($_SESSION["AJXP_CHARSET"]) && strlen($_SESSION["AJXP_CHARSET"])) return $_SESSION["AJXP_CHARSET"];
        // Get the current locale (expecting the filesystem is in the same locale, as the standard says)
        setlocale(LC_CTYPE, 'ko_KR.eucKR');
        return SystemTextEncoding::parseCharset(setlocale(LC_CTYPE, 0));
 }

 

setlocale에 대한 자세한 사항은 아래 php.net 참조

 

http://kr.php.net/manual/kr/function.setlocale.php

 

위 수정만으로 한글 파일 업로드 및 다운로드 가능합니다.

[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

좋은정보 감사드립니다.. 추천~ ^^

AjaxPlorer 는 euc-kr 에서는 사용할수 없나요?

그리구 AjaxPlorer 를 설치하는 방법이나
설정방법을 초보자도 알수있게 쉽게 설명되어있는
메뉴얼은 없을까요?

쉬운답변 주시면 너무나 감사하겠습니다...
요거 메인 접속만 저사양분들에게 빠르면 좋겠더군요
데이터 따로 업로드 하지 않고 하드 복사해서 쓰면
대용량 서버에 넣어서 사용하기 좋던데...
(왠지 몰라도 공유기 써서 그런지 전 다운이10mb중 1mb로 고정이...)
갠적으로 http://extplorer.sourceforge.net/ 도 괜찮더군요.

게시판 목록

프로그램

글쓰기