PHP 8.5.0 Beta 1 available for testing

Voting

: min(zero, five)?
(Example: nine)

The Note You're Voting On

mboeren at php dot net
21 years ago
Just a quick addition to my previous xmlrpc_client class: since you cannot use remote methods containing capital letters or methods from subhandlers (like 'system.listMethods()'), I added a 'call(...)' method to the class.

<?php
// this method should be copy/pasted in the
// xmlrpc_client class

function call($function)
{
$return = NULL;
$argv = func_get_args();
array_shift($argv); // remove function argument
$this->__call($function, $argv, &$return);
return
$return;
}

// now, you can also do
$result = $client->call('system.listMethods');
$sum = client->call('add', '1', '2');
?>

<< Back to user notes page

To Top