1ZFJVc3fSKZu8SJ4nBYPnq changeset
Changeset | 653264393230 (b) |
---|---|
Parent | None (a) |
a | b | ||
---|---|---|---|
0 | + | <?php | |
0 | + | $host = 'myhost.com'; | |
0 | + | $path = '/somepath' | |
0 | + | ||
0 | + | //Init it | |
0 | + | $rpc = new XmlRPC($host,$path); | |
0 | + | ||
0 | + | //Call it using the call method | |
0 | + | $output1 = $rpc->call('method',$arg1,$arg2); | |
0 | + | ||
0 | + | //Call it using the __call php magic method | |
0 | + | $output2 = $rpc->method($arg1,$arg2); | |
0 | + | ||
0 | + | //$output1 == $output2 | |
... |
|
|