Jump to content
Psyancy

[PHP]Server Status L2J

Recommended Posts

21 hours ago, Luca said:

Thanks for share :D 

(I'm not reviving this topic, I just want to see the hidden content)

Its ok mate, it's not counted as "revive". I'm glad you like it :)

Share this post


Link to post
Share on other sites

with a quick modification it can be created into a phpserver status for a wow server as well

 

<?php
   $server_ip = "localhost";
   $loginserver_port = "3724";
   $gameserver_port = "8085";

   $login_status = @fsockopen( "$server_ip" , "$loginserver_port", $errno, $errstr, 0);
   $game_status = @fsockopen( "$server_ip" , "$gameserver_port", $errno, $errstr, 0);
   
              if($login_status){
      echo"Login:&nbsp;&nbsp;&nbsp;Online<br />";
   }
   else{
      echo"Login::&nbsp;&nbsp;&nbsp;Offline<br />";   
   }
   if($game_status){
      echo" Game:&nbsp;&nbsp;&nbsp;Online<br />";
   }
   else{
      echo" Game:&nbsp;&nbsp;&nbsp;Offline<br />";
   };
mysql_close($connect);
?>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×