dogdog9 Posted February 9, 2008 Share Posted February 9, 2008 hi, I need to write a php script to record the amount of data transferred per month per registered user for upload/download data. Any good reference how to do such function? Thanks, Felix Quote Link to comment Share on other sites More sharing options...
phpknight Posted February 9, 2008 Share Posted February 9, 2008 Depending on what you are tracking, it might not be possible with php. However, if it was just images or something, you would have to get the file size of the upload or download and then store the items in a database by date. Unless you really, really need this though, it probably would not be an efficient use of your time to write this code. Quote Link to comment Share on other sites More sharing options...
awpti Posted February 9, 2008 Share Posted February 9, 2008 You would have to manage this with a script that fetches files for the user and passes them along to the browser with the appropriate mimetype and whatnot.. You could certainly record the data this way. Upload is obvious - just log it during the file upload. Google around, there are about a dozen pre-written scripts that will do these - some even manage bandwidth throttling. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.