+ Reply to Thread
Results 1 to 6 of 6

Thread: Bandwidth monitor script

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Bandwidth monitor script

    I need a script, that is able to show all-time used bandwidth on a single page, on the homepage. Do anyone know of a script that can do this?

    Example: I run a file host, I want to be able to show the ammount of downloaded data since the start of the file host.

  2. #2
    REBEL21's Avatar
    REBEL21 is offline x10 Lieutenant REBEL21 is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    ireland
    Posts
    355

    Re: Bandwidth monitor script

    i need the same as well as my aw stats are not working at the moment!!!
    Jamies Rebellion
    :thefingerJOIN DA REBELLION SWEEPING DA NATION:thefinger


  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Bandwidth monitor script

    Google is useless as always, because it just brings up windows apps etc

  4. #4
    sunils's Avatar
    sunils is offline x10 Spammer sunils is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Chennai ,India
    Posts
    2,264

    Re: Bandwidth monitor script

    [LEFT][B]Sunil Sankar
    -------------------------------------------------------------------------

  5. #5
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Bandwidth monitor script

    Nah I found an solution. I did this:

    PHP Code:
    $bwfile filesize("./storage/".$validdownload[0]);
    $bwfile $bwfile 1024;

    $file 'c:/wamp/www/file/secure/stat.txt' or die('Could not open file!');

    $fh fopen($file'rb') or die('Could not open file!');
    $data fread($fhfilesize($file));
    fclose($fh);

    $result $data+$bwfile;
    $fh fopen($file'w') or die('Could not open file!');
    fwrite($fh$result) or die('Could not write to file'); 

    fclose($fh); 
    Where $validdownload[0] contains the filename

  6. #6
    burner35's Avatar
    burner35 is offline x10 Sophmore burner35 is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Australia
    Posts
    127

    Re: Bandwidth monitor script

    Exactly how I did mine vigge! :D It's a good feature for websites with Coders.
    Within the TrackMania Community, they know me as fastforza!

+ Reply to Thread

Similar Threads

  1. BandWidth Explained
    By teclanka in forum Tutorials
    Replies: 9
    Last Post: 10-13-2008, 07:47 AM
  2. Bandwidth not logged since the 12th...
    By Smith6612 in forum Free Hosting
    Replies: 4
    Last Post: 02-23-2008, 04:38 PM
  3. Replies: 26
    Last Post: 01-28-2007, 05:39 PM
  4. Bandwidth usage
    By bobers in forum Free Hosting
    Replies: 5
    Last Post: 06-22-2005, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers