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!
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
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.
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.