code:xmlrpc-php
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | code:xmlrpc-php [2009/02/23 09:05] – description of functions pkubanek | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to use the XML-RPC interface within PHP ====== | ||
+ | |||
+ | It should be relatively straight forward. Just: | ||
+ | |||
+ | <code bash> | ||
+ | svn co https:// | ||
+ | </ | ||
+ | |||
+ | You most probably will need [[http:// | ||
+ | |||
+ | Of course you will need rts2-xmlrpcd running, as well as some web-server with PHP installed. | ||
+ | |||
+ | Then you can see either example included in [[http:// | ||
+ | |||
+ | <code php> | ||
+ | // make sure that file rts2phplib/ | ||
+ | | ||
+ | // create rc - rts2 client - object | ||
+ | $rc = new rts2xmlrpc(' | ||
+ | // print some values.. | ||
+ | print '< | ||
+ | print 'Value of T0.infotime:' | ||
+ | </ | ||
+ | |||
+ | ====== Available functions ====== | ||
+ | |||
+ | ===== devices() ===== | ||
+ | |||
+ | devices() call returns array which contains name of all devices in the system. | ||
+ | |||
+ | ===== valueOf() ===== | ||
+ | |||
+ | Takes in two parameters - name of device and name of value. Return string representation of the value. | ||
+ | |||
+ | |||
code/xmlrpc-php.txt · Last modified: 2009/02/23 00:00 (external edit)