I don't know if it's possible. If this were calculated based on the file's size, what happens if the transfer fails? What happens if the guy is just resuming a broken download? Neither of those cases could be calculated from the file's size. You could probably stream the file via your script, but I don't know if this would keep count of the data transfered to know the exact bandwidth used.
You could post this job in a freelance site like oDesk or eLance, see if someone bids on it and says it can be done.
I hope it helps.Statistics: Posted by Cristián Lávaque — November 29th, 2011, 1:26 am
]]>