Location: PHPKode > scripts > Team Speak Admin Class > team-speak-admin-class/example.php
<?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>";
	}

?>
Return current item: Team Speak Admin Class