Forum Moderators: DixonJones

Message Too Old, No Replies

Website Visitor Counter

Website Visitor Counter Stats

         

tomgordon

5:24 am on Nov 14, 2004 (gmt 0)

10+ Year Member



Just thought this may be helpful to everyone. It tracks your current website visitors.

[phplivestats.com...]

Tommy G

Matt Probert

3:44 pm on Nov 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you operate a Unix/Linux server, you can return the number of current open connections with the command:

netstat -na ¦ grep ^tcp ¦ wc -l

This can be simply incorporated into a Perl program:

# Get concurrent connections
open(FILE,"netstat -na ¦ grep ^tcp ¦ wc -l ¦");
$_ = <FILE>;
close(FILE);
print "STATUS:\n$_ users online\n";

Don't know if this is of any use to anyone, but I thought I'd share it <g>

Matt