Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-12-2013, 12:47 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default Server Status??

I have looked to find out how to call whether the server is online or offline, I have been successful in finding something that may do the trick, but it says the server is Offline even though it is online, and it still pulls the player information, code below.

Code:
<?php
if (exec("ps -A | grep world") == "")
   echo "<img src=\"./down.jpg\"</img>";
else
   echo "<img src=\"./up.jpg\"</img>";
fi
?>

<?php
   echo exec("mysql -H -u USER --password=PASSWORD-D DATABASE -e \"select distinct character_.name as Name, long_name as Zone from zone, character_, character_backup where zone.zoneidnumber = character_.zoneid and character_.name = character_backup.name AND ts > current_timestamp() - interval 1 hour ORDER BY ts;\"");
?>
EDIT: Could it be that it's checking for the world process and setting it as Down if it is there? This code is from an old 2007 post. http://www.eqemulator.org/forums/sho...+online+button
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:22 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3