Author Topic: (Request) Live Server Status  (Read 3053 times)

0 Members and 1 Guest are viewing this topic.

Offline Mikeman

  • Soldier
  • **
  • Posts: 150
    • Nuke Corruption
(Request) Live Server Status
« on: March 12, 2007, 01:48:17 pm »
Hello, I'm looking for Live Server Status script written in PHP.. To see who's playing in specific server and how much score, deaths, ping, etc. he have.

Anyone can help me out? I'm total newbie with PHP so..  ::)

Contact me on MSN: ion.x@hotmail.com or at IRC channel: #mrp @ Quakenet

Offline mikembm

  • Soldier
  • **
  • Posts: 210
Re: (Request) Live Server Status
« Reply #1 on: March 12, 2007, 02:16:26 pm »
If you want you can you my site at: http://servers.teracities.com/
You can create your own custom server list to check
But I'm not going to release the source code...

You can also do a search here for the php ASE script which gets the info if you want to make your own.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: (Request) Live Server Status
« Reply #2 on: March 12, 2007, 02:37:38 pm »
he's looking for something he can include in his site.  The REFRESH parsing code is over his head and he needs a simple thing made from that that he can put into his site

Offline Mikeman

  • Soldier
  • **
  • Posts: 150
    • Nuke Corruption
Re: (Request) Live Server Status
« Reply #3 on: March 12, 2007, 02:58:58 pm »
Yes.. like FliesLikeABrick said  :P

Something simple.. to just put link to my site and so on..  [retard]

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: (Request) Live Server Status
« Reply #4 on: March 12, 2007, 03:30:54 pm »
If you want you can you my site at: http://servers.teracities.com/
You can create your own custom server list to check
But I'm not going to release the source code...

You can also do a search here for the php ASE script which gets the info if you want to make your own.

On the otherhand, if you want to make one for him using your code, you can put up a little thing that he can include with php include() on his site, that'd make it even easier for him.  This is what I do for customers who want it, like http://rentals.u13.net/includes


edit: for those who want it, http://u13.net/status.phps is an example of the code.  This can be readily adapted to any server where you have access to gamestat.txt
« Last Edit: March 12, 2007, 04:22:15 pm by FliesLikeABrick »

Offline User No. 2

  • Major
  • *
  • Posts: 81
  • IT engineer
Re: (Request) Live Server Status
« Reply #5 on: March 18, 2007, 05:25:57 am »
Quote from: Mikeman
I'm looking for Live Server Status script written in PHP.. To see who's playing in specific server and how much score, deaths, ping, etc.

If you know Soldat server remote admin password (which you want to monitor) and you know (even basics of) PHP I think that this topic could much help you to write your web application. If you need help PM/email me for details.
« Last Edit: March 18, 2007, 05:41:23 am by User No. 2 »
Regards, User No. 2

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: (Request) Live Server Status
« Reply #6 on: March 18, 2007, 08:17:55 am »
This is a not-so-effective way to do it:

Code: [Select]
<?php
set_time_limit
(10);
$ip "127.0.0.1";
$port 23073;
$sck fsockopen($ip,$port,$err,$errno,10);
if(!
$sck){
echo 
"server offline";
}else{
echo 
"server online";
fclose($sck);
}
?>


Offline Mikeman

  • Soldier
  • **
  • Posts: 150
    • Nuke Corruption
Re: (Request) Live Server Status
« Reply #7 on: March 22, 2007, 02:54:29 am »
I know how to install that but it gives me "Server offline"

And same thing is with ZitroStats after I successfully installed them, there is live status script also and it shows too: "Server offline"

What might be the problem?

EDIT: The server is really online but still gives me offline message

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: (Request) Live Server Status
« Reply #8 on: March 22, 2007, 03:48:01 pm »
Make sure you have an admin password set. If it still doesn't work, try checking the modification time of gamestat.txt and if it's longer than 1 minute or so, the server is offline.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: (Request) Live Server Status
« Reply #9 on: March 22, 2007, 03:56:34 pm »
Make sure you have an admin password set. If it still doesn't work, try checking the modification time of gamestat.txt and if it's longer than 1 minute or so, the server is offline.

but he also wants to know who is playing.

Basically, he wants a little thing like I have on u13.net of who is playing, he just wants someone to help wrap that code into a usable form so he can just plug it into his site with a php include or something

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: (Request) Live Server Status
« Reply #10 on: March 22, 2007, 07:34:13 pm »
The problem might be that you are connected through a router.

In that case, you will need to set a proxy.
That is all I know, I don't know how you would doi it.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: (Request) Live Server Status
« Reply #11 on: March 23, 2007, 01:12:47 am »
Mike, I may know what's your problem. Come to #lrs and I'll try to help.

Offline Mikeman

  • Soldier
  • **
  • Posts: 150
    • Nuke Corruption
Re: (Request) Live Server Status
« Reply #12 on: March 23, 2007, 01:37:13 am »
FLAB, I think I get the "who's playing" -script with zitrostats, it generates the php code itself.

Thanks Leo, I'll come visit #lrs after I get out of school.  :)