PDA

View Full Version : How to show Current bandwidth usage ?


odell
Wed 23rd May '01, 3:37pm
Was visiting a site today and saw this at the top:

http://www.hardwareanalysis.com/
Please register or login. There are 2 registered users online. Current bandwidth usage: 0.233 Kbps.


Was wondering how to / or if this is possible to do with PHP ?


Also was wondering how you would display the current server load on a *nix machine. Kind of like they do at http://www.dslreports.com/

Theiggsta
Sat 26th May '01, 6:06am
These most likely parse from a CGI script somewhere on the server or a shell script that will output it to a textfile.

I cant explain how to do this...but you coudl try going on google or yahoo and searching for CGI based uage statistics scripts and having your PHP script just use FOPEN() to load them up.

Sounds easy...but its takes some work.