mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 17:42:40 +00:00
12 lines
208 B
PHP
Executable File
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];}
|
|
}
|
|
?>
|