質問編集履歴
6
しゅうせい
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
include_once("IXR_Library.php");
|
18
18
|
|
19
|
-
$client=new IXR_Client("http://localhost:8080/s
|
19
|
+
$client=new IXR_Client("http://localhost:8080/site_name/xmlrpc.php?rsd");
|
20
20
|
|
21
21
|
$id="●●●";
|
22
22
|
|
5
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -96,7 +96,7 @@
|
|
96
96
|
|
97
97
|
###発生している問題・エラーメッセージ
|
98
98
|
|
99
|
-
あるサイトを参考に上記試行しました。phpにパスワードを書いているのでログイン無しで投稿してることにはなるのでしょうけれど、phpファイル内にタイトルや本文を記載するあたり実用性に欠けます。こういうやり方で使用するものなのか疑問です。
|
99
|
+
あるサイトを参考に上記試行しました。phpにパスワードを書いているのでログイン無しで投稿してることにはなるのでしょうけれど、投稿者がphpファイル内にタイトルや本文を記載するあたりや、ブラウザを投稿の都度更新するあたり、実用性に欠けます。こういうやり方で使用するものなのか疑問です。
|
100
100
|
|
101
101
|
|
102
102
|
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
$client=new IXR_Client("http://localhost:8080/sosskynet_news/xmlrpc.php?rsd");
|
20
20
|
|
21
|
-
$id="
|
21
|
+
$id="●●●";
|
22
22
|
|
23
23
|
$pw="1234";
|
24
24
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
'mt_allow_comments' => '1', 'mt_allow_pings' => '0', 'mt_convert_breaks' => '1',
|
38
38
|
|
39
|
-
'mt_text_more' => '追記テキスト'), 1); /
|
39
|
+
'mt_text_more' => '追記テキスト'), 1); /* 0:下書き 1:公開 2:予約投稿 */
|
40
40
|
|
41
41
|
if($status){
|
42
42
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
$status=$client->query('mt.setPostCategories',
|
46
46
|
|
47
|
-
$post_id, $id, $pw, array(array('categoryId'=>'13'), array('categoryId'=>'54')));
|
47
|
+
$post_id, $id, $pw, array(array('categoryId'=>'13'), array('categoryId'=>'54'))); /* 地域と国 */
|
48
48
|
|
49
49
|
}
|
50
50
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
~
|
82
82
|
|
83
|
-
array(array('categoryId'=>'●●●'), array('categoryId'=>'●●●')));
|
83
|
+
array(array('categoryId'=>'●●●'), array('categoryId'=>'●●●')));
|
84
84
|
|
85
85
|
```
|
86
86
|
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,9 +10,9 @@
|
|
10
10
|
|
11
11
|
```php
|
12
12
|
|
13
|
+
/* toukou.php */
|
14
|
+
|
13
15
|
<?php
|
14
|
-
|
15
|
-
|
16
16
|
|
17
17
|
include_once("IXR_Library.php");
|
18
18
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
$description='本文です25
|
28
28
|
|
29
|
-
悪意のある者は、
|
29
|
+
悪意のある者は、影のように背後から忍び込んでくるゆえ、知らぬうちにしてやられるのに加え、やられた事実も認識すらできずにいるケースも多々存在する。セキュリティ対策として暗号化不実施が今回の漏洩事案の問題点である。';
|
30
30
|
|
31
31
|
$postDate=new IXR_Date(time() + 60 * 60); /* 即時公開 */
|
32
32
|
|
@@ -37,8 +37,6 @@
|
|
37
37
|
'mt_allow_comments' => '1', 'mt_allow_pings' => '0', 'mt_convert_breaks' => '1',
|
38
38
|
|
39
39
|
'mt_text_more' => '追記テキスト'), 1); // 0:下書き 1:公開 2:予約投稿
|
40
|
-
|
41
|
-
|
42
40
|
|
43
41
|
if($status){
|
44
42
|
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
「WordPressでは、XML-RPCを利用することでエントリーの投稿、取得、カテゴリの作成、編集などをブラウザで管理画面にログインすることなく出来ます。」等の説明がたくさんあります。
|
4
4
|
|
5
|
-
しかし、具体的にそれをどう使うものなのか、検索のほか書籍にも当たりましたが把握できません。
|
5
|
+
しかし、具体的にそれをどう使うものなのか、検索のほか書籍にも当たりましたが、最初の入口が把握できません。
|
6
6
|
|
7
7
|
|
8
8
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,4 +102,4 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
-
使
|
105
|
+
WordPressで作成したサイトにXML-RPCを使ってログインすること無く記事を投稿するという際に、使用できるツールや手順について、ご教授いただけますと幸いです。
|