PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nils Hulsch  >  Team Speak Admin Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: examplefile
Class: Team Speak Admin Class
Administrate Team Speak voice chat servers
Author: By
Last change:
Date: 10 years ago
Size: 437 bytes
 

Contents

Class file image Download
<?php

   
include("tsac.class.php");

   
$ts=new tsac();

   
// connecting to server, this is required before you can do anything
   
$ts->connect("127.0.0.1",51234,"superadmin","12345");

   
// getting parsed playerlist
   
$players=$ts->getplayerlist(8767,0);

   
// showing playerlist
   
for($i=0;$i<count($players);$i++) {
        foreach(
$players[$i] as $key => $value) {
            echo
$key.": ".$value."<br>";
        }
        echo
"<br><br>";
    }

?>