User Tools

Site Tools


code:xmlrpc-php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
code:xmlrpc-php [2009/02/23 09:02] – created rts2phplib page pkubanekcode:xmlrpc-php [2009/02/23 09:05] – description of functions pkubanek
Line 8: Line 8:
  
 You most probably will need [[http://phpxmlrpc.sf.net/|PHP XML-RPC library]]. Debian package is called php5-xmlrpc. You most probably will need [[http://phpxmlrpc.sf.net/|PHP XML-RPC library]]. Debian package is called php5-xmlrpc.
 +
 +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://rts-2.svn.sf.net/viewvc/rts-2/trunk/rts2phplib/rts2.php?view=markup|rts2phplib/rts2.php]], or use code provided bellow to start with the library: Then you can see either example included in [[http://rts-2.svn.sf.net/viewvc/rts-2/trunk/rts2phplib/rts2.php?view=markup|rts2phplib/rts2.php]], or use code provided bellow to start with the library:
Line 20: Line 22:
  print 'Value of T0.infotime:' . $rc->valueOf('T0', 'infotime') . '<br/>';  print 'Value of T0.infotime:' . $rc->valueOf('T0', 'infotime') . '<br/>';
 </code> </code>
 +
 +====== 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)