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 Link to comment https://forums.phpfreaks.com/topic/90173-record-amount-of-data-transferred/ 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. Link to comment https://forums.phpfreaks.com/topic/90173-record-amount-of-data-transferred/#findComment-462437 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. Link to comment https://forums.phpfreaks.com/topic/90173-record-amount-of-data-transferred/#findComment-462440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.