Server Status Script
Posted: Wed Dec 24, 2014 12:50 pm
Blows my mind that it was so hard to find something so simple.
That's it. Default = down, set up if socket can be opened. Change the ip to whatever your system is. Add it to any html file and you're good to go.
Code: Select all
<?php
$sts = "<font color=#FF0000>Down</font>";
$fp = fsockopen("10.0.0.220", 54231, $errno, $errstr, 1);
if($fp !== false) $sts="<font color=#00FF00>Up</font>";
echo "Lobby Status: " . $sts;
?>