RemoteAdmin:admin dialog

From OpenSimulator

Revision as of 04:40, 31 March 2017 by Djphil (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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);
?>
Personal tools
General
About This Wiki