Location: PHPKode > projects > AModules3 > amodules-3.0.1/samples/11-rpc/caller.php
include '../../trunk/loader.php';

$api = new ApiWeb('caller');

# if you use apache @ localhost it might not detect it's own URL properly.

echo "The following calculus will be executed by TestClass (remotely) which will be called by this script: $h<p>";

$remote = $api->add('RPC')

$answer = $remote->summ_numbers(2,3);
echo "Sum of 2 and 3 is: $answer<br>";

// you can customize CURL options

// and try again
$answer = $remote->multiply_numbers(100,200);
echo "Multiplication of 100 and 200 is: $answer<br>";

Return current item: AModules3