Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to count file,how many times download
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to count file,how many times download

 Post Reply Post Reply
Author
khubaib View Drop Down
Newbie
Newbie


Joined: 09 May 2005
Location: Pakistan
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote khubaib Quote  Post ReplyReply Direct Link To This Post Topic: How to count file,how many times download
    Posted: 26 November 2005 at 7:07am
How to count file,how many times download,
any asp codes or other help
thanks
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
khubaib View Drop Down
Newbie
Newbie


Joined: 09 May 2005
Location: Pakistan
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote khubaib Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2005 at 7:27am
thanks your reply i am trying
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.