Register for your free account! | Forgot your password?

You last visited: Today at 22:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Question

Discussion on Question within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 253
Received Thanks: 102
Question

How do i display how many players are online?

the following code does NOT work:
Code:
mysql_select_db($mydbacc);
$res = mysql_query("SELECT count(*) FROM account WHERE online = 1");
$val = mysql_fetch_array($res);
echo "Total Characters Online: ".$val[0]."<br />";
I need the correct code please.
thanks
dibiase is offline  
Old 06/10/2009, 08:41   #2
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
really you cant .... that will show weather they are banned or not :P
hio77 is offline  
Old 06/10/2009, 10:34   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 806
Received Thanks: 321
Here you go [Full Credits goes to Forcer]
Quote:
Originally Posted by forcer View Post
PHP Code:
Online Players: <b><?php echo (exec('netstat -a -n |find "5816"  |find "ESTABLISHED" /c')-2); ?></b><br />
adding this to your index.php should show Online players.

Regards
Spy520
Spy520 is offline  
Old 06/10/2009, 10:59   #4
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by Spy520 View Post
Here you go [Full Credits goes to Forcer]



Regards
Spy520
just too warn you that will only work if the site is hosted on the local system ...


there is a remote way of running it i will work out how to use it correctly and show you if you would like ^_^
hio77 is offline  
Old 06/10/2009, 13:57   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 806
Received Thanks: 321
Yeh it will be so nice as now adays no one use Apache , All use free hosting like freehostia.com so we need it really fast hio77 , Thanks
Spy520 is offline  
Old 06/10/2009, 21:09   #6
 
elite*gold: 0
Join Date: Aug 2008
Posts: 253
Received Thanks: 102
Thanks, my website is on my computer so that should work ^_^ thanks spy
dibiase is offline  
Old 06/11/2009, 00:37   #7
 
commandcom's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 84
Received Thanks: 23
i remember i made it with functions(Game server online.txt) but im lazy to make an example for you
study some php so it make sense for you
commandcom is offline  
Old 06/11/2009, 06:28   #8
 
hio77's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 1,759
Received Thanks: 827
Quote:
Originally Posted by Spy520 View Post
Yeh it will be so nice as now adays no one use Apache , All use free hosting like freehostia.com so we need it really fast hio77 , Thanks
i know how too .... been reading up on it but i haven't tested yet .... free webhosts suck ... i pay for all my web hosting separate from the server so the server purely dose the server no site data .... other than torrenting the client ....
hio77 is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/12/2009 - Cabal Online - 3 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts Bump.
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +1. The time now is 22:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.