Results 1 to 9 of 9

Thread: Hit Counter

  1. #1
    dziner
    Guest
    Hit Counter
    A client of mine would like a hit counter on the site I've designed for him. Can anyone suggest and good counters, scripts, or free services? I personally HATE counters, but it's not my site.

    Here's the site (The History Channel will be doing an Engineering Disasters episode on this subject on September 1st): www.centraliaminefire.com

  2. #2

    witeshark's Avatar
    Member Since
    Mar 09, 2004
    Location
    Miami FL
    Posts
    2,860
    Specs:
    G4 1Ghz OS X 10.4.7
    Here's a Google list

  3. #3

    muso's Avatar
    Member Since
    Jan 15, 2003
    Location
    Whangarei, New Zealand
    Posts
    2
    Specs:
    Pwnt
    Maybe you could make your own? http://www.zend.com/zend/tut/counter.php
    I'm in your forums, writing sentences in a grammatically acceptable manner.

  4. #4
    dziner
    Guest
    Quote Originally Posted by witeshark
    Here's a Google list
    I've already googled it and didn't see anything that seemed very good. I'm looking for someone who has used a hit counter. Doing a web search is the first thing I do. When I don't find anything there I turn to the forums.

  5. #5
    dziner
    Guest
    Quote Originally Posted by muso
    Maybe you could make your own? http://www.zend.com/zend/tut/counter.php
    The client doesn't have access to MySQL on his server. So I think this is going to have to be a CGI script based counter.

  6. #6

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Just do a simple fopen on a file add 1 to the value inside of it, save it, and go on... it is really easy to write something like that in PHP and if I remember correctly you know PHP pretty well.. So there you go You do have to worry about file corruption, due to two people simultaneously accessing the file, but I have a couple of these for a couple of clients and I have not had any problems with it. You could also lock the file if you wanted to, to prevent this from happening.

  7. #7
    h0tk4rl
    Guest
    Quote Originally Posted by Murlyn
    Just do a simple fopen on a file add 1 to the value inside of it, save it, and go on... it is really easy to write something like that in PHP and if I remember correctly you know PHP pretty well.. So there you go You do have to worry about file corruption, due to two people simultaneously accessing the file, but I have a couple of these for a couple of clients and I have not had any problems with it. You could also lock the file if you wanted to, to prevent this from happening.
    If you lock the file then you can easily bypass any multiple write issues.

    Something simple:
    http://www.phpexamples.net/codeExSnippet-54.html

  8. #8

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Yep exactly what I said

  9. #9
    h0tk4rl
    Guest
    Quote Originally Posted by Murlyn
    Yep exactly what I said
    When you're right, you're right! hehe

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hit counter... iWeb
    By alesimons in forum Web Design and Hosting
    Replies: 3
    Last Post: 05-16-2009, 11:08 AM
  2. Hit counter Problems
    By alesimons in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-03-2009, 11:34 PM
  3. Who's Had My Visitor Counter?
    By WSteG in forum Web Design and Hosting
    Replies: 1
    Last Post: 02-03-2008, 08:57 PM
  4. counter-strike 1.6 help
    By michro in forum OS X - Apps and Games
    Replies: 3
    Last Post: 08-09-2007, 12:44 PM
  5. counter-strike
    By brynn in forum OS X - Apps and Games
    Replies: 3
    Last Post: 09-01-2005, 11:43 AM

Posting Permissions

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