I'm trying to use fsock to connect to a TeamSpeak server query but i am getting no response. Below is my code and what my config file is showing and i believe it should work. Thanks!
<?php
$fp = fsockopen(ip, 10011);
fputs($fp, "login website@xxxx
");
fputs($fp, "use 1
");
fputs($fp, "servergroupaddclient sgid=15 cldbid=6
");
fclose($fp);
?>
And my config file shows https://i.gyazo.com/d8c2e68e34c0020649653eb95a3e992b.png