그누보드 게시판 정보의 공유에 대한 첫번째 테스트 > 자유게시판

자유게시판

그누보드 게시판 정보의 공유에 대한 첫번째 테스트 정보

기타 그누보드 게시판 정보의 공유에 대한 첫번째 테스트

본문

공지사항에 올릴 사항은 아니라고 판단하여 이곳에 글을 씁니다.
친구(Friend)라고 이름 붙인 첫번째 테스트 버전에 대해 설명을 드릴까 합니다.
제가 글을 잘 못쓰니까 이해해 주세요.

가끔씩 좋은 정보를 접할때면 나 혼자만 보기에는 아깝다라던지 또는 이벤트가 있는데 여러사이트에서 보여줄순 없을까 하는 생각을 가지고는 합니다.
물론 복사 & 붙여넣기 하면 되지만 이러한 노력은 컴퓨터를 사용하는 목적과는 좀 동떨어지기도 하지요.

아주 간단하게 친구를 사용하는 방법에 대해서 설명드리고자 합니다.

1. xml_friend.php 를 자신의 웹서버에 위치시킨다.
2. 타 사이트(여기서는 SIR)에서는 xml_friend.php 의 내용을 읽어들여 출력해준다.

음~ 너무 간단하군요.

왜 이런 방법을 써야 하는가? 라고 물으신다면...
상대방에게 정보를 보여주기 위하여 나의 MySQL 패스워드를 알려줄 수는 없는 노릇입니다.

그럼 HTML 로 변환하여 보여주던지 아니면 일반 TEXT 파일로 보여주면 되는데 왜 XML 이냐? 라고 물으신다면...
XML은 표준으로 자리 잡을것이기 때문입니다.

백문이 불여일견 ... 한번 해보시자구요 ...

http://sir.co.kr/xml/xml_friend.phps
이 소스를 복사하여 자신의 웹서버에 파일로 만들어서 올립니다.
이때 확장자는 php 로 주셔야 합니다. phps 는 소스를 보여주는 확장자 입니다.
$bo_table 변수의 값만 자신이 만든 게시판을 부여하시구요.
http://sir.co.kr/?doc=xml/xml_friend.php 과 같이 보인다면 성공입니다.

그리고 나서 코멘트에 자신의 도메인 주소를 넣은 http://sir.co.kr/?doc=xml/xml_friend.php 와 같은 주소형식으로 코멘트를 남겨주세요.
그 다음 SIR 메인 화면을 보시면 자기 사이트의 내용이 출력되는것을 확인하실 수 있습니다.

다섯분의 사용자님만 테스트 주소를 올려주신 순서대로 적용해 보겠습니다.

주의) iconv() 함수가 지원되어야 합니다.
추천
0

댓글 33개

http://zzv.co.kr/bbs/?doc=xml_friend.php

아래처럼 보이는것이 정상인가요?

  <?xml version="1.0" encoding="euc-kr" ?>
- <rss>
- <channel>
  <title>운영자님 수고가 많으십니다.</title>
  <link>http%3A%2F%2Fzzv.co.kr%2Fbbs%2F%3Fdoc%3Dbbs%2Fgnuboard.php%26bo_table%3Dg_free%26wr_id%3D162</link>
  <description>각종 홍보글로 인해 게시판이 더러워지는 것을 막고 건전하고 깨끗한 게시판을 만들기위한 홈피 운영자님께 수고하신다는 말씀을 드리고 싶습니다. 둘러 보니 아직 완성된것은 아니나 신설된 메뉴도 있고 운영자님이 고심한 흔적이 보입니다. 회원여러분들의 많은 관심과 참여로 한결 편안한 온라인 휴식처가 되었으면 합니다. 정회원들만의 공간이 생긴것도 좋고... 간단한 안건은 온라인 모임에서 결정하면 되겠군요...</description>
  </channel>
  </rss>
그렇군요 ..
그럼 텍스트만 있는 내용을 한번 링크시켜보겠습니다.
iconv() 함수를 사용하지 않습니다.
오류 나시는 분들도 사용할 수 있습니다.
프로그램을 수정해 주십시오.
$description = urlencode($description); 이거 대신에
$description = htmlspecialchars($description);를 넣어 보았습니다.

http://calmbreaker.net/?doc=xml/xml_friend2.php 여기에요.
&nbsp;가 그대로 보이네요... -_-^ 별로 이쁘지 않네요... 켁.. -_-;;;;
브이시 님// iconv 라이브러리 소스 파일이군요... -_-;;;;
이거... 리눅스 상에서 텔넷으로 gzip 압축 푸시고 tar 아카이브 풀어내신 뒤에 텔넷 커맨드 라인에서
$ ./configure --prefix=/usr/local
$ make
$ make install
요 세 명령을 차례로 내리면 컴파일되고 설치된다는 내용이네요...
그리고 설치된 라이브러리를 로드도 해야 될꺼고... ㅡ_ㅡ^ 골치 아프게 되셨습니다 그려...
The latest release is http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.1.tar.gz

이걸 다운 받아서 어떻게 설치 하는지 좀 영어 잘하시는 분들 해석좀 해주세요.
----------------------------------------------------------------------------
Installation
As usual for GNU packages:
$ ./configure --prefix=/usr/local
$ make
$ make install

After installing GNU libiconv for the first time, it is recommended to recompile and reinstall GNU gettext, so that it can take advantage of libiconv.

On systems other than GNU/Linux, the iconv program will be internationalized only if GNU gettext has been built and installed before GNU libiconv. This means that the first time GNU libiconv is installed, we have a circular dependency between the GNU libiconv and GNU gettext packages, which can be resolved by building and installing either

first libiconv, then gettext, then libiconv again,
or (on systems supporting shared libraries, excluding AIX)
first gettext, then libiconv, then gettext again.
Recall that before building a package for the second time, you need to erase the traces of the first build by running "make distclean".
This library can be built and installed in two variants:

The library mode. This works on all systems, and uses a library libiconv.so and a header file <iconv.h>. (Both are installed through "make install".)
To use it, simply #include <iconv.h> and use the functions.

To use it in an autoconfiguring package:

If you don't use automake, append m4/iconv.m4 to your aclocal.m4 file.
If you do use automake, add m4/iconv.m4 to your m4 macro repository.
Add to the link command line of libraries and executables that use the functions the placeholder @LIBICONV@ (or, if using libtool for the link, @LTLIBICONV@). If you use automake, the right place for these additions are the *_LDADD variables.
Note that iconv.m4 is also part of the GNU gettext package, which installs it in /usr/local/share/aclocal/iconv.m4.

The libc plug/override mode. This works on GNU/Linux, Solaris and OSF/1 systems only. It is a way to get good iconv support without having glibc-2.1. It installs a library libiconv_plug.so. This library can be used with LD_PRELOAD, to override the iconv* functions present in the C library.
On GNU/Linux and Solaris:
$ export LD_PRELOAD=/usr/local/lib/libiconv_plug.so
On OSF/1:
$ export _RLD_LIST=/usr/local/lib/libiconv_plug.so:DEFAULT
A program's source need not be modified, the program need not even be recompiled. Just set the LD_PRELOAD environment variable, that's it!
$description = iconv("euc-kr", "utf-8", get_text($row[wr_content]));
$description = urlencode($description); //요 줄을 추가했습니다... 코드 번호로만 페이지가 보이는 군요...
제대로 적용한게 아닌 듯 싶습니다... ^^;;;;
phpschool 에 나와 있는 내용은 너무 어렵네요.
좀 쉽게 libconv 모듈을 설치 하는 방법이 없습니까?
Fatal error: Call to undefined function: iconv() in /wecan2/conquer/conquer.new21.net/gnu/include/xml_friend.php on line 20

이런 메세지가 뜨는군요
전체 195,331 |RSS
자유게시판 내용 검색

회원로그인

진행중 포인트경매

  1. 참여2 회 시작24.04.25 20:23 종료24.05.02 20:23
(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT