new xmlrpcval('Just a test','string'), 'title' => new xmlrpcval('Edit Post Test', 'string'), 'categories' => new xmlrpcval(array(), 'array') ),'struct'), new xmlrpcval(1, 'boolean'), // publish ) ); $c=new xmlrpc_client($serverPath, $serverHost, $serverPort); $c->setDebug(1); $r=$c->send($f); $v=$r->value(); if (!$r->faultCode()) { echo 'success!'; } else { print "Fault: "; print "Code: " . $r->faultCode() . " Reason '" .$r->faultString()."'
"; } ?>