2 <head><title>xmlrpc</title></head>
4 <h1>Zope test demo</h1>
5 <h3>The code demonstrates usage of basic authentication to connect to the server</h3>
9 $f = new xmlrpcmsg('document_src', array());
10 $c = new xmlrpc_client("/index_html", "pingu.heddley.com", 9080);
11 $c->setCredentials("username", "password");
17 print "I received:" . htmlspecialchars($v->scalarval()) . "<br/>";
18 print "<hr/>I got this value back<br/>pre>" .
19 htmlentities($r->serialize()). "</pre>\n";
23 print "An error occurred: ";
24 print "Code: " . htmlspecialchars($r->faultCode())
25 . " Reason: '" . ($r->faultString()) . "'<br/>";