• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

XML/RPC2/H03-May-2022-6,2292,010

docs/H03-May-2022-324232

tests/H03-May-2022-7,1766,720

MakefileH A D03-Aug-2018404 1612

README.mdH A D03-Aug-20181,007 3731

composer.jsonH A D03-Aug-20181.1 KiB4544

README.md

1PEAR XML_RPC2
2=============
3XML_RPC2 is a pear package providing XML_RPC client and server services.
4XML-RPC is a simple remote procedure call protocol built using HTTP as
5transport and XML as encoding.  As a client library, XML_RPC2 is capable of
6creating a proxy class which exposes the methods exported by the server. As a
7server library, XML_RPC2 is capable of exposing methods from a class or object
8instance, seamlessly exporting local methods as remotely callable procedures.
9
10Basic Usage
11-----------
12```php
13<?php
14
15$options = array(
16  'prefix' => 'package.'
17);
18
19$client = XML_RPC2_Client::create(
20  'http://pear.php.net/xmlrpc.php',
21  $options
22);
23
24try {
25  $result = $client->info('XML_RPC2');
26  print_r($result);
27} catch (XML_RPC2_FaultException $e) {
28  // The XMLRPC server returns a XMLRPC error
29  die('Exception #' . $e->getFaultCode() . ' : ' . $e->getFaultString());
30} catch (Exception $e) {
31  // Other errors (HTTP or networking problems...)
32  die('Exception : ' . $e->getMessage());
33}
34
35?>
36```
37