Page 1 of 1

record amount of data transferred

Posted: Fri Feb 08, 2008 10:34 pm
by dogdog9
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

Re: record amount of data transferred

Posted: Sat Feb 09, 2008 9:54 am
by Christopher
You can use a PHP script to download files. See the header() function for examples. If you get the file size and add include it with the record of the download, or simply add it to a total, you can track downloads.