record amount of data transferred

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
dogdog9
Forum Newbie
Posts: 2
Joined: Fri Feb 08, 2008 10:13 pm

record amount of data transferred

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: record amount of data transferred

Post 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.
(#10850)
Post Reply