Jump to content
  • 0

Game Server + Login Status For 3Rd Website.


Opeth

Question

3 answers to this question

Recommended Posts

  • 0

Hi,

Im running a website/board, there is any script/code that i can use for check Game Server + Login status (on/off) from another game server?

Do you mean... a php code like this?

 

<?php 

$da = fsockopen("udp://176.31.97.77", 2106, $errno, $errstr, 1);
if($da >= 1){ 
echo "<center><span style='color:green;'>Online</span></center>";//login
}
else{ echo "<center><span style='color:red;'>Offline</span></center>"; }
fclose($da); 
$de = fsockopen("udp://176.31.97.77", 7777, $errno, $errstr, 1);
if($de >= 1){ 
 echo "<center><span style='color:green;'>Online</span></center>";//game
}
else{echo "<center><span style='color:red;'>Offline</span></center>";}
fclose($de); 
?>
Edited by ^Wyatt
Link to comment
Share on other sites

  • 0

Do you mean... a php code like this?

 

<?php 

$da = fsockopen("udp://176.31.97.77", 2106, $errno, $errstr, 1);
if($da >= 1){ 
echo "<center><span style='color:green;'>Online</span></center>";//login
}
else{ echo "<center><span style='color:red;'>Offline</span></center>"; }
fclose($da); 
$de = fsockopen("udp://176.31.97.77", 7777, $errno, $errstr, 1);
if($de >= 1){ 
 echo "<center><span style='color:green;'>Online</span></center>";//game
}
else{echo "<center><span style='color:red;'>Offline</span></center>";}
fclose($de); 
?>

Im not good at .php but I will test it, thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...