User Contributed Notes Funzioni XMLRPC |
|
[email protected]
27-Dec-2001 10:01 |
|
Refer to the below link for documentation / latest releases of the
package.
|
|
[email protected]
08-Jan-2002 12:26 |
|
"Latest releases" is a bit redundant, since this extension is
bundled into PHP (as of 4.1.0). You don't need to download anything from
sourceforge to make this work. Just compile PHP with the --with-xmlrpc
flag.
The site
is useful, however, for documentation.
|
|
[email protected]
24-Apr-2002 04:05 |
|
An alternative XML-RPC implementation is available at - it's
written in PHP so you can use it on servers for which you don't have the
luxury of rebuilding PHP on.
nic
|
|
ivanr @ webkreator.com
21-Jun-2002 06:50 |
|
For a really easy way to use this XML-RPC extension take a look
at
XML-RPC Class Server ()
It
automatically creates servers out of PHP classes. Creating clients is
almost as easy, especially with the recent addition of the overload
extension to PHP (see ).
|
|
[email protected]
28-Jul-2002 08:33 |
|
Anyone interested in PHP-GTK talking to an XML-RPC server:
|
|
[email protected]
15-Aug-2002 03:32 |
|
This extension does not handle the process of making making XML-RPC client
requests via HTTP; it only prepares the XML-RPC request
payload.
This differs from many other XML-RPC implementations but
offers greater flexibility, allowing SSL connections, authentication
headers and XML-RPC via other transports like SMTP.
|
|
[email protected]
24-Aug-2002 08:32 |
|
There's a handy library by Keith Devens (version 2.2.1) at
Here
is a sample client. It remotely calls sample.sumAndDifference with two
parameters (3 and 5). It returns:
sum => 8 difference
=> -2
<?php include ("kd_xmlrpc.php"); //
define("XMLRPC_DEBUG", 0); // Set to 1 for handy
debugging
$method = "sample.sumAndDifference"; $params
= array(XMLRPC_prepare(3), XMLRPC_prepare(5)); $request =
xmlrpc_encode_request($method,$params);
$site =
"xmlrpc-c.sourceforge.net"; $location =
"/api/sample.php";
list($success, $result) =
XMLRPC_request( $site, $location, $method, $params );
//
XMLRPC_debug_print(); // uncomment for debugging
foreach (
$result as $key => $value ) { echo(" $key =>
$value \n"); }
?>
|
|
[email protected]
26-Aug-2002 05:08 |
|
Oops, two changes to the above code:
// This style is better: //
better // $params = XMLRPC_prepare(array(3,5)); // uncool // $params =
array(XMLRPC_prepare(3), XMLRPC_prepare(5));
// This line is
unnecessary, it can be safely removed: // $request =
xmlrpc_encode_request($method,$params);
|
|
|