- Jan 7, 2002
- 9,448
- 1
- 76
I have php 4.3.3 installed on IIS 5.1. I try to run a script that requires an fsockopen command but only get back ...
Here are the specs:
XP pro
PHP 4.3.3
IIS 5.1
Lynksys Router <-- could this be the problem?
Any ideas???
P.S. Heres a snippet of the code it's working with...
I know this script works because when uploaded to my paid server it's fine. My only guess is that my personal computer that I have IIS running on does not allow the remote server queries, I even shut down my XP firewall to see if that was the problem, no go.Notice: Undefined variable: tmpinfo in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 18
Notice: Use of undefined constant gamever - assumed 'gamever' in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 19
Notice: Undefined variable: tmpinfo in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 19
Notice: Use of undefined constant location - assumed 'location' in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 20
Notice: Undefined variable: tmpinfo in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 20
Notice: Use of undefined constant official - assumed 'official' in c:\inetpub\wwwroot\serverinfo\scanner.inc.php on line 21
Here are the specs:
XP pro
PHP 4.3.3
IIS 5.1
Lynksys Router <-- could this be the problem?
Any ideas???
P.S. Heres a snippet of the code it's working with...
<?PHP
ob_start();
$connection = fsockopen("udp://$serveripaddress",$serverqueryport);
fwrite($connection,"\\status\\");
socket_set_timeout($connection, $ws_querytimeout);
fpassthru($connection);
$strOutput = ob_get_contents();
$tmp=explode("\\",$strOutput);
ob_end_clean();
for($i=1;$i<count($tmp);$i++) {
$varname=$tmp[$i];
$i++;
$tmpinfo[$varname]=$tmp[$i];
}
// sync Serverlist with GameserverQuery-protocol
$serverinfo[hostname] = $tmpinfo["hostname"];
$serverinfo[gamever] = $tmpinfo["gamever"];
$serverinfo[location] = $tmpinfo["location"];
$serverinfo[official] = $tmpinfo["official"];
$serverinfo[leased] = $tmpinfo["leased"];
