How to count file,how many times download
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=17350
Printed Date: 29 March 2026 at 3:55pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: How to count file,how many times download
Posted By: khubaib
Subject: How to count file,how many times download
Date Posted: 26 November 2005 at 7:07am
How to count file,how many times download,
any asp codes or other help
thanks
|
Replies:
Posted By: dpyers
Date Posted: 26 November 2005 at 12:38pm
Easiest way is to check your log files to see how many times the url
was accessed - only counts "started" downloads though - not "finished"
downloads.
Another way is to have all your links point to a download manager asp program - e.g. http://dloadmanager.asp?FILE=filename.zip
The download manager updates your counters and either streams the filr to them from a db or redirects them to the actual file.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: khubaib
Date Posted: 27 November 2005 at 7:27am
thanks your reply i am trying
|
Posted By: theSCIENTIST
Date Posted: 27 November 2005 at 11:11am
Or, you write to a text file, then redirect to the file for the download to begin, either of these ways are a bit flawed, in the sense that it only counts the download initiation, and disregards whether the file was fully downloaded or not, so these counters can be faked easily.
Maybe with ASP.NET there's a way to add to the counter only on download completion, but I'm not very proficient in .NET yet.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: dpyers
Date Posted: 27 November 2005 at 12:09pm
If you stream the file under control of a script - e.g. the file itself
is stored in a db - you can also increment a "completed download"
counter but you'd have to increment your script time-out value for most
files.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
|