RemoteAdmin:admin dialog
From OpenSimulator
(Difference between revisions)
(Created page with "=== PHP === This example needs the RemoteAdmin PHP Class file available [http://code.google.com/p/opensimtools/wiki/RemoteAdminPHPClass here]. <source lang="php"> <?php // Inc...") |
(→PHP) |
||
Line 12: | Line 12: | ||
?> | ?> | ||
</source> | </source> | ||
+ | [[Category:RemoteAdmin]] | ||
+ | [[Category:RemoteAdmin Commands]] |
Revision as of 03:41, 31 March 2017
PHP
This example needs the RemoteAdmin PHP Class file available here.
<?php // Including the RemoteAdmin PHP class. include('RemoteAdmin.php'); // Instantiate the class with parameters $myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret'); // Invoke admin_dialog (multiple parameters) $parameters = array('message' => '<MESSAGE_HERE>', 'from' => '<UUID_HERE>'); $myRemoteAdmin->SendCommand('admin_dialog', $parameters); ?>