PHP expert |
|
Status: <?php
$sIp = "serveradress...";
$iPort = 51234;
$iTimeOut = 0.5;
if(!@fsockopen($sIp,$iPort,$errno,$errstr,$iTimeOut))
{ echo "<font color=\"red\">Offline</font>"; }
else
{ echo "<font color=\"green\">Online</font>"; }
?>
Status: <?php $sIp = "serveradress..."; $iPort = 51234; $iTimeOut = 0.5; if(!@fsockopen($sIp,$iPort,$errno,$errstr,$iTimeOut)) { echo "<font color=\"red\">Offline</font>"; } else { echo "<font color=\"green\">Online</font>"; } ?>
Zoiets? |