Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member Richard S's Avatar
    Join Date
    Jul 2004
    Location
    SW Lonodn
    Posts
    219
    Member #
    6728
    Liked
    3 times
    I've been trying to figure out how it would be possible to either disaplay a 'server load' graph as seen here:

    www.sxc.hu (left hand side)

    Or display the bandwidth usage as seen here:

    www.hardwareanalysis.com (top of page)

    I've done some considerable Googeling on the subject but only found one place that would sell me a script for $15.

    I'd rather get some info and do it myself.

    Thanks in advance

  2.  

  3. #2
    Senior Member jbagley's Avatar
    Join Date
    Sep 2004
    Location
    Cape Town
    Posts
    845
    Member #
    7422
    Im interested to find out how to do it aswell....

  4. #3
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    The only idea I can come up with is to use PHP's referers to check the page you just came from (assuming its on your site) and filesize() that page and add it to a total. The only problem is that you can't effectively get the current page's size. Either way its going to be a very rough estimate. (I'm not sure if a filesize() would take into account any included files or images)

  5. #4
    Senior Member Richard S's Avatar
    Join Date
    Jul 2004
    Location
    SW Lonodn
    Posts
    219
    Member #
    6728
    Liked
    3 times
    I don't think thats realy going to work. It dosn't take in to acount the bandwidth or load used by other users.

    I still can't figure out how people are doing it, but I have found out it's only possible to do on a Linux server. Not sure why?

    Umm, maybe if you had some sort of txt file or a Mysql table.

    Every time a page is accsesed the file size of the current page is written to this table along with a pretty accurate time.

    A bar graph could be produced depending on the amount of pages and the size of those pages in the last second/two seconds.

    This is still pretty (very) rough I'm sure there must be a better way.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:30 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com