Bandwidth

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaycooke
Forum Newbie
Posts: 3
Joined: Thu May 08, 2003 9:04 am

Bandwidth

Post by jaycooke »

How could i find out bandwidth usage with php for a folder. Without using a account in apache.
Need this info asap is possible, a script would be helpful, but what every you guys have to give :-)

Thanks
Jayson
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

please explain a bit more in detail.
esp.
Without using a account in apache
jaycooke
Forum Newbie
Posts: 3
Joined: Thu May 08, 2003 9:04 am

Reply

Post by jaycooke »

Im starting my free hosting website soon, it just creates an folder for each username and an ftp account, then the user can create mysql dbs and so on. I've figured out how to check how much space is used. So i just do an cron job every 12 hours to make sure people are not going over there limit. But i need a script that will work out how much bandwidth is used for there account. In this case for an folder.

But i don't want to have to but an access log line in for every account in an .htdocs file.

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

then the new mod_logio module is out of the question?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

btw: http://www.analog.cx/ seems to be quite popular but I'm not familiar with it so can't tell you wether it is able to seperate requests based on the directory name.
jaycooke
Forum Newbie
Posts: 3
Joined: Thu May 08, 2003 9:04 am

Reply

Post by jaycooke »

Any other ideas? that script seams to be really hard to configer.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

yea i was lost in that also....heh


:?
Post Reply