May 16, 2008

How Many Times Was The File Taken? - Counting downloads

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

How Many Times Was The File Taken? - Counting downloads

mrdee
I was wondering if someone could help me with the following:

On my website there is a small file which can be downloaded.
I would like to be able to monitor how many times it has been downloaded, the result does not need to appear on the site, it is just for me personally.
Has anyone got some code in HTML or PHP which can achieve that?

Thanks in advance.

Reply

serverph
Ccount - click and download counter
http://www.phpjunkyard.com/php-click-counter.php

QUOTE
Ccount is a PHP click counter which can also be used as a download counter. With its help you can count clicks on any link on your website. A great tool if you want to know how many times a link has been clicked, a file downloaded ("download counter") and similar. You can also hide your affiliate links with PHP click counter. As long as it's a link - Ccount can count clicks on it!

Ccount uses flat-text database so no SQL databases are necessary. I also developed an admin panel, where you can view link statistics: how many times a link has been clicked (both numerical and graphical display of stats), link with most clicks and average clicks per link. You can also easily add, edit, reset or remove links in the admin panel or even display the number of clicks on any web page.

Ccount has been tested on servers under Linux and Windows operating systems. It should work on any server with a working PHP installation.


and it's FREE too. tongue.gif

 

 

 


Reply

t3jem
That's actually pretty sweet, I had thought about this, but I never got unlazy enough to actually make a script for it. Actually what I was thinking of doing was just making a php page that redirected to the file and in the stats just see how many times the page was hit, but this might be better, thanks for the link! And thanks for asking the question I was too lazy to answer tongue.gif

Reply

mrdee
Thank you so much for posting this. I will definitely check this out.
Does it also work for links that have to be right clicked? The file in question on my web site is a small .txt file, and people have to right click and select "save as".

Please also bear in mind that I am not a PHP expert, I am going through the rigorous process of learning it.
But thanks ever so much for the link anyway.

Reply

serverph
@mrdee:
QUOTE
Does it also work for links that have to be right clicked? The file in question on my web site is a small .txt file, and people have to right click and select "save as".
sure thing. if you check the page, it has a working example on how the script works. just hover over the sample link provided and you will see that it will access first the click.php script with the corresponding ID of the download concerned, thereby adding to the download count. smile.gif

@t3jem:
QUOTE
Actually what I was thinking of doing was just making a php page that redirected to the file and in the stats just see how many times the page was hit, but this might be better, thanks for the link!

maybe you can code the script you have in mind, and perhaps it will be an improvement on the above-mentioned script. alternative scripts will always be welcome for some of course. smile.gif

Reply

tracdoor
Thanks for the person that posted that link, it really helped me, the download counter will be a key part in my site smile.gif


Thank you so much smile.gif

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : times, file, counting, downloads

  1. Resizing A Quicktime File ?
    (6)
  2. Trap17 Free Web Template Downloads
    Trap 17 member contributions (10)
    Well, BuffaloHELP, here is my contribution. /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> Free template downloads. Albeit over 100 web
    templates instead of one-at-a-time. I have started this thread for people to voluntarily add to.
    OK, everybody, lets keep this thread alive and updated frequently. ....
  3. Looking To Host Music .mp3 File
    how do i do this? (8)
    im looking to add music to my website. i have the music i want in a mp3 format. how do i upload it
    or host it to the net . I tried uploading it on my server and when i use the url for it it just
    gives me an option to download the file.. I need help anyone have a suggestion on what i need to do.....
  4. I Need Help With Attaching A Keylogger 2 A File How Do I Do It?
    help me plzzzzzzzzzz (4)
    can som1 help me attach a file 2 a keylogger plzzzzzzzz /ph34r.gif" style="vertical-align:middle"
    emoid=":ph34r:" border="0" alt="ph34r.gif" /> /ph34r.gif" style="vertical-align:middle"
    emoid=":ph34r:" border="0" alt="ph34r.gif" /> /ph34r.gif" style="vertical-align:middle"
    emoid=":ph34r:" border="0" alt="ph34r.gif" /> /ph34r.gif" style="vertical-align:middle"
    emoid=":ph34r:" border="0" alt="ph34r.gif" />....
  5. Import From Excel File Into Mysql Database
    (5)
    Has anyone tried using the excel import function that comes with phpmyadmin
    http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
    is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
    to import the data to , there is a link on the bottom left corner which says "insert data from a
    text file into the table" - although it says text file it still can be used to import an excel file.
    When you click on this link you will be taken to a page where you will be asked for the file name
    (the....
  6. File Upload From Url
    (3)
    i need some help with a file upload script. i have it so i can upload files from my computer, but i
    need one that can upload a file to my server from a url. does anybody know how to do this???....
  7. Php Tutorial - Basics...up To Mysql/file Commands
    (1)
    the best way to start php is probably not adjusting a script IMO - that misses out a stage. - the
    very first stage - here... Why use php? because it allows things to be generated very quickly -
    without lots of html pages. It enables users you choose to allow, to input their own content to the
    pages you want them to. 1) save these files as anyfilename.php - pick your names, upload them to a
    php enabled server and go to the url they are at... 2) understand , .php, //////, /* */, and ;
    Code: ?> THis tells the web browser when to expect php coding. So... wh....
  8. Webpage Design- Autodownloading Hosted Files
    hosted "zip" file download-How To ??? (1)
    Hi Guys, Posted this inquiry over a week ago & got no replys so I'm re-posting via new thread.
    How do I setup a automatic download to a webpage visitor to my website? If I "host" (ie. store the
    file ) on my website how do I make it so that the visitor can click on a button & get the file to
    automatically download to their computer.??? This may seem obvious to youall but I'm very new
    and have no idea. All Info appreciated!!! Any Links to "How To"s ?? Tutorials ?? Thanks
    in advance RGPHNX....
  9. Website Building- E-mail Forwarding & Downloads
    Response Forms & downloading zip files (9)
    Hi guys, Am new to designing. How do I : 1) include a popup form on my webpage for the visitor to
    input info & have the info forwarded to my personal e-mail account (not trap17). 2) make links to
    download files (ie. zip etc.) hosted on my website for ftp direct download to the visitors computer.
    (You know, click a link & the file automatically downloads) Any info appreciated !!!
    Tutorials ????????????????? Step by step info ???????????? Thanks in advance RGPHNX....
  10. Downloads Corrupting
    (2)
    Ok, I don't know if any of you can help, but its worth a shot. Over the past few weeks, any
    time my friend downloads something over 2megs a part of the download corrupts. It used to happen to
    him alot when downloading anything over 500megs, we thought it had something todo with his ram. But
    like, now, we have no clue what the hell is going on. Hes on a 256kbps DSL Connection. I know I
    left things out, just ask and Ill answer. Any help would be greatly apprieaceated. Thanks.....
  11. A Lot Of Flash Templates
    Just one file zip file (0)
    Here it is: CODE http://www.buycheapwebsites.com/download/bct-flashtemplates.zip
    Carpe diem....

    1. Looking for times, file, counting, downloads

Searching Video's for times, file, counting, downloads
advertisement



How Many Times Was The File Taken? - Counting downloads



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE