D3VIANCE
09-15-2003, 08:43 PM
Please help! I'm not a coding n00b - not by any stretch. On the other hand, I'm not an expert with sockets. I've tried the most basic of examples, and still nothing. I can't connect to anything, even my own machine.
I'm simply trying to query a game server with the fsockopen command. Here's an example of a Jolt server that's always on:
<?php
$fp = fsockopen("udp://195.149.21.46", 28950, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
} else {
fwrite($fp,"\n");
echo fread($fp, 26);
fclose($fp);
}
?>
So what's wrong with this picture? Why will it not do anything?
Here it is, running on my server. It's an expensive server with 1&1 Hosting, Professional package:
http://www.clanplay.com/fsockopen.php
See? Times out. Does chuff all. Please help me! I'm running leagues, ladders, you name it on Clanplay, and I'm trying to develop a ranking system for SoF - but I can't even get past stage 1.
There's a big kiss in it for the first person who can get server queries working on my server. https://vborg.vbsupport.ru/
By the way, fsockopen isn't disabled. Here's a link to my phpinfo.php:
CLICK HERE (http://resources.winslow-clan.com/check-php.php)
I'm simply trying to query a game server with the fsockopen command. Here's an example of a Jolt server that's always on:
<?php
$fp = fsockopen("udp://195.149.21.46", 28950, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
} else {
fwrite($fp,"\n");
echo fread($fp, 26);
fclose($fp);
}
?>
So what's wrong with this picture? Why will it not do anything?
Here it is, running on my server. It's an expensive server with 1&1 Hosting, Professional package:
http://www.clanplay.com/fsockopen.php
See? Times out. Does chuff all. Please help me! I'm running leagues, ladders, you name it on Clanplay, and I'm trying to develop a ranking system for SoF - but I can't even get past stage 1.
There's a big kiss in it for the first person who can get server queries working on my server. https://vborg.vbsupport.ru/
By the way, fsockopen isn't disabled. Here's a link to my phpinfo.php:
CLICK HERE (http://resources.winslow-clan.com/check-php.php)