Unstoppable Domains โ€” Get your daily AI drops report

[Help] Can't find "users online" script

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch
Impact
45
Hey guys,

I really need some help. I am looking for a script that will lively show how many people are on a certain domain, and then how many people are on a bunch of different domains (a 'network') put together:

I want something kind of like this:
----
Users on this site: 2 (which would mean there are 2 users on one domain/site)
Users on the network: 14 (which means that with all the domains/sites added together, there are 14 users total on all)
----

I have looked everywhere, yes, I have checked Hotscripts and the whole works. Have I found anything? No.

If someone could please help me out, I would really appreciate it!

Thank you,
Andy M.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AndyM3 said:
Hey guys,

I really need some help. I am looking for a script that will lively show how many people are on a certain domain, and then how many people are on a bunch of different domains (a 'network') put together:

I want something kind of like this:
----
Users on this site: 2 (which would mean there are 2 users on one domain/site)
Users on the network: 14 (which means that with all the domains/sites added together, there are 14 users total on all)
----

I have looked everywhere, yes, I have checked Hotscripts and the whole works. Have I found anything? No.

If someone could please help me out, I would really appreciate it!

Thank you,
Andy M.


Are you looking for something in php?
 
0
•••
I'm looking for anything that can do the job :p

But yes, preferably PHP.

Thanks,
-Andy M
 
0
•••
I don't mean to bump or anything again - but can anyone help me?
To be honest I'm kind of in a hurry over this.

Thanks,
Andy
 
0
•••
the reason they dont exist (or are very few of them) is because they are often required in different ways

with this you will never get an accurate way to who is on your site. but you would need to build a php script that will log who vistis into a database of somekind and then load the users who have visited in the last 5 minutes or something
 
0
•••
You just have to do the past 5 minutes but you'll have to have all the sites insert into a certain database though.
 
0
•••
if each site is using a diffren't database, then:

On every page, use php to log how many users there are.....and now when its time to show how many ppl:

example: (gettotal.php)
$new = time() - 60*5;
mysql_query("DELETE * FROM sessions WHERE time<=$new");
$result = mysql_query("SELECT id FROM sessions");
$current_site = mysql_num_rows($result);
echo $current_site;

now, to get other sites:
$total = $current_site;
$html = file_get_contents('http://www.url.com/gettotal.php');
$total = $total + $html;
$html = file_get_contents('http://www.url2.com/gettotal.php');
$total = $total + $html;
echo $total;

Somethign like that
 
0
•••
I hate to sound like an idiot, but I am completely PHP illiterate.
How would I go about doing something with that code, in order to do a users online one domain/users on all domains type thing?

Thanks,
Andy
 
0
•••
If you're willing to join my forum, I'm willing to basically write the script for you once you ask on the site! :)

TalkPHP.com would be the domain btw.
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back