
Zhris
User
Feb 4, 2012, 3:10 PM
Post #6 of 10
(2509 views)
|
|
Re: [mondo90] How to control downloading file ?
[In reply to]
|
Can't Post
|
|
Hi, In many cases, counting the number of times the download link was clicked would be sufficient, especially as a "boosted count" will often be desired when displaying to users. In your case, you require an accurate/reliable count. It should be possible to parse the log file on your server which stores downloads. This also has its issues, i.e. if the user is using a download manager which breaks the download up into chunks, therefore producing multiple records in the log. You could design your code to recognize/handle if multiple records per download, but I don't think you would ever be able to guarantee 100% accuracy. If you were letting users i.e. download your own written software, I would consider sending a request to the server when the program is opened for the first time, incrementing the count. But I doubt this is relevant in your case. In conclusion, consider why you need an accurate/reliable count / what will the resultant data be used for / is there room for error at all. Chris
|