【发布时间】:2012-06-01 19:54:10
【问题描述】:
我正在尝试将我的应用程序与 Drupal 连接。它返回给我这个错误:“出了点问题 - -32602:服务器错误。方法参数的数量错误。”。我认为它应该有效。
有人知道这里出了什么问题吗?
我的代码:
set_time_limit(0);
require_once("IXR_Library.php");
// Create the client object
$client = new IXR_Client('http://localhost/drupal6/xmlrpc.php');
//$client->debug=true;
$username = "admin";
$password = "admin";
$params = array(0,$username,$password,10);
if (!$client->query('metaWeblog.getRecentPosts', $params)) {
die('Something went wrong - '.$client->getErrorCode().' : '.$client->getErrorMessage());
}
$myresponse = $client->getResponse();
【问题讨论】: