<?php
include("xmlrpc.inc");
$userID = "test";
$userPW = "test";
$PostTitle= "제목테스트 하자";
$PostContent = "게임하자";
$tag = "test tag";
$f = new xmlrpcmsg("metaWeblog.newPost", array(
new xmlrpcval("", "string"), // blogid.
new xmlrpcval("*****", "string"), // 유저 ID.
new xmlrpcval("******", "string"), // 패스워드.
new xmlrpcval( // 본문
array(
'title' => new xmlrpcval($PostTitle),
'description' => new xmlrpcval($PostContent),
'category' => new xmlrpcval($PostCategory),
), "struct"),
new xmlrpcval(false, "boolean") )
);
$c = new xmlrpc_client("/rpc1", "rpc.egloos.com", 80);
$c->setDebug(1);
$r = $c->send($f);
$v = $r->value();
print "Fault: ";
print "Code: " . htmlspecialchars($r->faultCode()) . "<br>";
print "Reason '" . htmlspecialchars($r->faultString()) . "'<BR>";
?>
metaWeblog 를 사용 해서 블로그 원격 포스팅을 만들어서
게시판 연동 해서 블로그로 글 입력 되게 할려구 하는데
영문은 잘 넘어 가는데 한글은 제대로 넘어 가지 않은데 제대로 한글을 넘기는 방법좀 알려주세요
include("xmlrpc.inc");
$userID = "test";
$userPW = "test";
$PostTitle= "제목테스트 하자";
$PostContent = "게임하자";
$tag = "test tag";
$f = new xmlrpcmsg("metaWeblog.newPost", array(
new xmlrpcval("", "string"), // blogid.
new xmlrpcval("*****", "string"), // 유저 ID.
new xmlrpcval("******", "string"), // 패스워드.
new xmlrpcval( // 본문
array(
'title' => new xmlrpcval($PostTitle),
'description' => new xmlrpcval($PostContent),
'category' => new xmlrpcval($PostCategory),
), "struct"),
new xmlrpcval(false, "boolean") )
);
$c = new xmlrpc_client("/rpc1", "rpc.egloos.com", 80);
$c->setDebug(1);
$r = $c->send($f);
$v = $r->value();
print "Fault: ";
print "Code: " . htmlspecialchars($r->faultCode()) . "<br>";
print "Reason '" . htmlspecialchars($r->faultString()) . "'<BR>";
?>
metaWeblog 를 사용 해서 블로그 원격 포스팅을 만들어서
게시판 연동 해서 블로그로 글 입력 되게 할려구 하는데
영문은 잘 넘어 가는데 한글은 제대로 넘어 가지 않은데 제대로 한글을 넘기는 방법좀 알려주세요
댓글 1개
게시글 목록
| 번호 | 제목 |
|---|---|
| 297 | |
| 295 | |
| 293 | |
| 292 | |
| 290 |
개발자
DNS를 설치하려는데...
1
|
| 289 |
개발자
★★ 프로그래머 구합니다
|
| 285 | |
| 279 | |
| 278 | |
| 273 | |
| 270 | |
| 268 | |
| 263 |
개발자
에러좀 찾아주세요
4
|
| 261 |
디자이너
플래쉬 질문입니다
1
|
| 259 |
개발자
SSL ? SSO
1
|
| 256 |
개발자
완전 궁금한 질문
2
|
| 251 | |
| 245 | |
| 242 |
개발자
한글도메인 접속 오류..?
2
|
| 239 | |
| 234 | |
| 232 | |
| 231 |
개발자
한글도메인 접속오류
|
| 226 | |
| 223 | |
| 222 | |
| 218 | |
| 216 | |
| 213 |
개발자
하수를 도와주세요 ㅠㅠ
2
|
| 211 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기