note 24653 modified in ref.xmlrpc by cece

From: Date: Mon, 18 Aug 2003 21:31:14 +0000
Subject: note 24653 modified in ref.xmlrpc by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54617@lists.php.net to get a copy of this message
There's a handy library by Keith Devens (version 2.2.1) at http://www.keithdevens.com/software/xmlrpc/ 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 = XMLRPC_prepare(array(3,5)); $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"); } ?> --was-- There's a handy library by Keith Devens (version 2.2.1) at http://www.keithdevens.com/software/xmlrpc/ 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"); } ?> http://www.php.net/manual/en/ref.xmlrpc.php

« previous php.notes (#54617) next »