SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2003
    Location
    canada
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    File Hits and counter

    Well i'm looking for javascripts which would let me put text based counters, below are that i have been looking for. please help

    o File Downloads Counter

    here what i want is that, when each time this link recives a hit it will add one more counter value. here is a eg:

    Soul Trap.exe (Date Added: 16-07-2003 | Downloads: 1095)

    here

    Soul Trap.exe (Date Added: 16-07-2003 | Downloads: [counter])

    It should be able to add hits without going to any other page unlike www.downloadcounter.com .

    o Total Downloads Counter
    this is text based too but how would i count the total downloads of the site including many files, so is there a good script for it?

    o Page views
    Finnaly is there a good sctipt to show text based visitor count?

    any help appreciated.

  2. #2
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't do that with JavaScript alone - each count must be stored on the server, and hence server-side scripting is required. See here:
    http://www.sitepointforums.com/showt...hreadid=111104
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


Bookmarks

Posting Permissions

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