时间:2021-07-01 10:21:17 帮助过:17人阅读
- function send_to_other($web,$title,$con,$USER,$PASS,$count=-1) {
- $client = new IXR_Client($web);
- $content['title'] = $title;
- //$get_post_info->post_category;
- $content['categories'] = array("同人");
- $content['description'] = $con;
- // $content['custom_fields'] = array( array('key' => 'my_custom_fied','value'=>'yes') );
- $content['mt_keywords'] = '同人';
- if (!$client->query('metaWeblog.newPost','', $USER,$PASS, $content, true))
- {
- die( 'Error while creating a new post' . $client->getErrorCode() ." : ". $client->getErrorMessage());
- }
- $ID = $client->getResponse();
- if($ID)
- {
- // echo 'Post published with ID:#'.$ID;
- }
- return $post_ID;
- }
http://www.bkjia.com/PHPjc/444555.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444555.htmlTechArticle上周做了一个银魂的网站 http://www.iyinhun.com 喜欢吐槽的热血动画的粉丝可以看看。 因为一个人做,比较吃力,我就想做一个自动维护程序(其实...