3 Test call to the nucleus XML-RPC server sending a metaWeblog.getRecentPosts request
5 Wouter Demuynck / 2003-08-31
8 // URL of XML-RPC server
9 $serverHost = 'localhost';
11 $serverPath = '/nucleus/nucleus/xmlrpc/server.php';
13 include('../../config.php');
14 include($DIR_LIBS . 'xmlrpc.inc.php');
17 'metaWeblog.getRecentPosts',
19 new xmlrpcval('1', 'string'), // blogid
20 new xmlrpcval('example', 'string'), // username
21 new xmlrpcval('example', 'string'), // password
22 new xmlrpcval('5', 'int') // amount to get
27 $c=new xmlrpc_client($serverPath, $serverHost, $serverPort);
33 if (!$r->faultCode()) {
37 print "Code: " . $r->faultCode() .
38 " Reason '" .$r->faultString()."'<BR>";