LCKB
Server Status shower - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Off-Topic (The Outer World) (https://lckb.dev/forum/forumdisplay.php?fid=198)
+---- Forum: General Discussion (https://lckb.dev/forum/forumdisplay.php?fid=147)
+---- Thread: Server Status shower (/showthread.php?tid=251)

Pages: 1 2


- BashVendetta - 10-16-2011


Yeah just use:

 

$ServerIP = "PUT SERVER IP HERE";

$ServerPort = "4110";

$Sockres = @FSockOpen($ServerIP, $ServerPort, $errno, $errstr, 1);

if (!$Sockres) {

$Status = "Offline";

}

else {

@FClose($Sockres);

$Status = "Online";

}




- Darquise - 10-16-2011


aSH' date=' post: 11309"']Yeah just use: 

$ServerIP = "PUT SERVER IP HERE";

$ServerPort = "4110";

$Sockres = @FSockOpen($ServerIP, $ServerPort, $errno, $errstr, 1);

if (!$Sockres) {

$Status = "Offline";

}

else {

@FClose($Sockres);

$Status = "Online";

}

 

 

hmm but this isn´t working.




- joken - 10-16-2011

If you want you can try out my tool. It can be found 2.




- BashVendetta - 10-17-2011


hmm but this isn´t working.
 

Works fine for me.




- --1-- - 11-18-2011

Where can I save those php code?