User Tools

Site Tools


This is an old revision of the document!

How to use the XML-RPC interface within PHP

It should be relatively straight forward. Just:

svn co rts2phplib

You most probably will need PHP XML-RPC library. Debian package is called php5-xmlrpc.

Then you can see either example included in rts2phplib/rts2.php, or use code provided bellow to start with the library:

 // make sure that file rts2phplib/ exists in your PHP script directory
 // create rc - rts2 client - object
 $rc = new rts2xmlrpc('localhost', 8889);
 // print some values..
 print '<hr/>Value of T0.OBJ:' . $rc->valueOf('T0', 'OBJ') . '<br/>';
 print 'Value of T0.infotime:' . $rc->valueOf('T0', 'infotime') . '<br/>';
code/xmlrpc-php.1235376136.txt.gz · Last modified: 2009/02/23 00:00 (external edit)