GAMA-Site/testserver.php
2012-09-20 23:34:38 -04:00

12 lines
208 B
PHP
Executable File

<?php
function GetServerStatus($site, $port)
{
$status = array("OFFLINE", "ONLINE");
$fp = @fsockopen($site, $port, $errno, $errstr, 2);
if (!$fp) {
return $status[0];
} else
{ return $status[1];}
}
?>