Hello,

I'm trying to connect to my TS3 server with PHP but it's just timing me out.

PHP Code:
<?php
/* set error reporting levels */
error_reporting(E_ALL E_STRICT);

/* set default timezone */
date_default_timezone_set("Europe/London");


/* load framework library */
require_once("../libraries/TeamSpeak3/TeamSpeak3.php");

$usrname "";
$pass "";
$host "";
$qport 10011;
$sport 9987;
/* connect to server, authenticate and get TeamSpeak3_Node_Server object by URI */
$ts3_VirtualServer TeamSpeak3::factory("serverquery://{$usrname}:{$pass}@{$host}:{$qport}/server_port={$sport}");

?>
Code:
Fatal error: Uncaught exception 'TeamSpeak3_Transport_Exception' with message 'Connection timed out' in /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/Transport/TCP.php:54 Stack trace: #0 /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/Transport/TCP.php(108): TeamSpeak3_Transport_TCP->connect() #1 /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/Adapter/ServerQuery.php(76): TeamSpeak3_Transport_TCP->readLine() #2 /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/Adapter/Abstract.php(60): TeamSpeak3_Adapter_ServerQuery->syn() #3 /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/TeamSpeak3.php(310): TeamSpeak3_Adapter_Abstract->__construct(Array) #4 /home/bvaeucom/public_html/TS3/scripts/away.php(17): TeamSpeak3::factory('serverquery://F...') #5 {main} thrown in /home/bvaeucom/public_html/TS3/libraries/TeamSpeak3/Transport/TCP.php on line 54
I tried it with putty and that all works fine.
Any suggestions?