Somebody please help me!
Its not working whats the problem?
Code:
<?php
$ts3_ip = 'xx.xxx.xxx.xxx';
$ts3_queryport = 10011;
$ts3_user = 'serveradmin';
$ts3_pass = 'asd';
$ts3_port = 9987;
$ts3_sid = 2;
$tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
if($tsAdmin->getElement('success', $tsAdmin->connect())) {
$tsAdmin->login($ts3_user, $ts3_pass);
$server = $tsAdmin->serverInfo();
$output = 0;
$output = $server['virtualserver_name'];
}else{
echo 'Connection could not be established.';
}
?>
<?PHP echo $output; ?>
Its not working whats the problem?