Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP] Server status

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 12, 2006
Messages
9
Reaction score
0
Here is a script to check serverstatus

PHP:
<?php
$fp = @fsockopen ("YOUR IP", 30001, $errno, $errstr, 2); // 2 = sec. timeout
if (!$fp) {
   echo "<span id=code><b>Server ist offline</b></span>";
} else {

       echo "<span id=code1><b>Server ist online</b></span>";
   }
   @fclose($fp);

?>
 
Status
Not open for further replies.
Back
Top