BLOG main image
분류 전체보기 (27)
WEB (23)
Animation (0)
Football (2)
etc. (1)
귀하의 사이트를 보는 것이..
22:00 - kindle case
Helpful information. Lucky..
01/28 - lactose intolerance
I am not certain the place..
01/27 - diapers coupons
Outstanding work ! Your in..
01/25 - Hayward Locksmiths
I mean, you just know so..
01/25 - furniture stores in los angeles
105,890 Visitors up to today!
Today 78 hit, Yesterday 120 hit
daisy rss
tistory 티스토리 가입하기!
'UTF-8'에 해당되는 글 1건
2006/04/07 00:17
[WEB]
이번에 서버가 깨져서 새로 설치하면서 서버가 전부 UTF-8 환경으로 바꼈습니다.
이것 저것 테스트하던 중에 제로보드에서 문제가 다수(-_-) 발생하는 것을 확인하고 몇가지 테스트를 해보고 아래와 같이 설정했습니다.

IE 6.0, FF 1.5 에서 전부 문제없이 작동했으며(간단한 것만 테스트한거라 문제가 있을 수도 있지만 -_-;) 태터툴즈 홈페이지의 제로보드에서 생기는 검색 문제도 없는 것을 확인했습니다.


1. _head.php, lib.php(<? 다음 줄에 추가)
header("Content-Type: text/html; charset=euc-kr");


2. install_ok.php, lib.php(mysql_select_db 어쩌고 다음 줄에 추가, 각각 16라인, 296라인)
@mysql_query("set names euckr", $connect);


3. schema.sql(139라인)
no int(11) default 0 not null auto_increment primary key, 를
no int(11) not null auto_increment primary key, 로 변경


(제로보드의 경로가 html/zboard 일 경우)

4. ssh(telnet) 접속 후 html 디렉토리에서 실행
chmod 707 zboard


5. zboard 디렉토리에서 실행
grep -l "session_register" * | xargs perl -pi.sess -e 's/session_register\("(.+)"\)/\$_SESSION[\047\1\047] = \$\1/'
(SecureCRT의 경우 복사 한 후 Shift + Insert 키를 누르면 붙여넣기가 됩니다.)

원래 파일명.sess 파일로 백업받으니 필요없으면 삭제
변경되는 파일 : admin.php, apply_vote.php, comment_ok.php, lib.php,login_check.php, logout.php, member_join_ok.php, member_out.php,view.php, vote.php, write_ok.php


6. 글자 깨지는 곳이 없으면 끝!!
Trackback Address :: http://blog.rsef.net/trackback/2 관련글 쓰기
stainless steel tube | 2011/09/07 16:03 | PERMALINK | EDIT/DEL | REPLY
Thanks for the inspiration I was stressed by work but I learnt that life is about living to the fullest and enjoying every moment.Thanks a million
edit my essay | 2012/01/16 21:02 | PERMALINK | EDIT/DEL | REPLY
Another writes wrote better articles on this topic. You can compare them.
Name
Password
Homepage
Secret
prev"" #1 next