Quote:
|
Originally Posted by blaw
Hi there,
I have seen a script like that for webhosting resellers (no longer distributed). The trick that it used was to access WebHostingManager's log and get the bandwidth/disc usages per domain with PHP and report it to you via email (you can set a cron job for that). That way, whatever WHM keeps track of can be referred to.
If you have a bandwitdh stats log on HTTP, FTP, POP..., then you can perhaps access those in a similar way and group them by directories.
...well, it's not much different from what you mentioned, but if you need to do this, you need to use some kind of method to keep track of bandwitdh usage, I suppose.
|
Yeah, what I was wondering was that, I have actually just found a script online (whose URL I won't mention..) that lets you give free web site accounts, and one of its features is checking and limiting each user's bandwidth. If one would have to access some stats log in some ways in order to do this, how can a commercial script include a feature like this? (given that it wouldn't know what kind of stats log the customer's server has)
[edit]
From the FAQ in the web site of this script:
Quote:
My bandwidth monitoring is not working in the program, how can I get it to work?
The bandwidth monitor only works with Apache operating systems, as this web server uses .htaccess files to record the user's bandwidth. We recommend installing the program on Unix/Linux operating systems running with Apache web server. The Apache web server can be freely downloaded from their website - www.apache.org. If you are running IIS on a Windows operating system, the bandwidth feature will not work on the program.
|
What does .htaccess files have to do with bandwidth?