Alright I made a gaming website, and I tested it first on my ownself-managed server, http://rfiles.info/spadegaming
The server status worked perfectly on my host. All 4/4 server showed ok.
Then I signed up for a hostrocket.com account (which is now http://spadesgaming.com ), and uploaded the SAME exact files to the site, and for some reason the status doesn't work on the two
"World of Warcraft" server ip's and it really doesn't make sense, since they are EXACTLY the same, just coming from two different servers. (Also, the other two servers in the list show ok) :S.
Here's the Code I'm using:
[PHP]function server_info_wow($ip,$port,$udp,$tcp,$ssl,$tls)
{
$online = 0;
$ip_header = "";
if($udp >= 1) $ip_header = "udp://";
if($tcp >= 1) $ip_header = "tcp://";
if($ssl >= 1) $ip_header = "ssl://";
if($tls >= 1) $ip_header = "tls://";
if (! $sock = fsockopen($ip_header.$ip, $port, $num, $error, 1))
{
$online = 0;
echo $error;
echo "($num)";
var_dump($sock);
}
else
{
$online = 1;
fclose($sock);
}
if($online == 0)
{
return 0;
}
elseif($online == 1)
{
return 1;
}
}[/PHP]
May be it's something I'm doing wrong...which hopefully is the case, because im baffled at this point.
Thanks in advance.
~Ryan