I have code to connect to teampeak server with telnet. can someone help me send a command?
my code is:
<?php
$ip = 'localhost';
$result = '';
$fp = fsockopen($ip, 10011);
echo fgets($fp);
fputs($fp,"help");
$result=fread($fp,1024);
fclose($fp);
echo nl2br($result);
?>
I want to send the command "help"
this code only returns:
TS3
Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help " for information on a specific command.
source
share