Results 1 to 5 of 5

Thread: Need a file download counter to my Home Page

  1. #1

    Thread Starter
    Addicted Member Michel Jr's Avatar
    Join Date
    Jan 2000
    Location
    Brazil
    Posts
    175

    Question

    Hi,

    I would like to add a counter at my Home Page to know how many times a file was downloaded.
    How to do this or where can I find it?

    Thanks a lot...

    Michel Jr.

  2. #2
    Guest
    for the download link you could actually have a page that appears and redirects to the zip file..
    for example
    I click on download.htm

    and after 1 second it redirects to thedownload.zip and downloads it.

    and in that one second, record the visit,
    I dont really know how to do this though.

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    it requires ASP or CGI files...If you search for Hit Counter you will find some offered as freebies, some want reference pictures, etc. Another place you might want to look is in JavaScript...I know they can count actual visits by using cookies but I'm not sure on a page hit...surely they can.

    http://www.javascripts.com

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    You can save page hits to a cookie but
    if it on the client then it only logs visits by the client on whose machine the cookie is - so in effect its only showing the number of time YOU (the owner of THAT system) visited.

    therefore you need to save the info on the server ....
    which means either a script to a txt file maybe in cgi, asp, or vbscript/javascript or whatever your flavour.

    DocZaf
    {;->

  5. #5
    Lively Member
    Join Date
    Mar 2000
    Posts
    81

    Smile

    JavaScript, as marvellous as it is, and as much as I love it, will not do the business. It is clientside and not serverside. As far as I know, ASP is only supported by NT servers, and I don't know anything about it (other than what it stands for ). VBScript I don't know about - I know it is clientside, but I also know that CGI (Common Gateway Interface) scripts can be written in VBScript. VBScript is probably a no-no. CGI scripting is the one to go for, since it is serverside (clientside, cookies, etc. won't do) - one of the most common languages used for writing CGI scripts is Perl, an interpretted language that is supported by loads of Unix and NT servers out there.

    Your server may have some system CGI scripts - it's worth checking out the host's help files for information on the availability of system counters, etc.

    If you cannot find any system CGI scripts on your server, first check that the server CAN host CGI scripts (many can't) and if it can, get hold of one... as HeSaidJoe suggested, search on the internet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width