Results 1 to 10 of 10

Thread: Free web counter?

  1. #1
    Join Date
    Jun 2002
    Posts
    648
    Rep Power
    0

    Default Free web counter?

    I need a web counter for one of my sites to track number of visitors to my web site.

    Any recommendations?

    and BTW...it must be FREE!

  2. #2
    Join Date
    Jul 2002
    Posts
    818
    Rep Power
    0

    Default Re:Free web counter?

    I'll just write one for you.

    What scripting language does your server support? (php, asp, CF, etc...)

  3. #3
    Join Date
    Jun 2002
    Posts
    648
    Rep Power
    0

    Default Re:Free web counter?

    It supports both PHP and ASP.

    Thanks much

  4. #4
    Join Date
    Jul 2002
    Posts
    818
    Rep Power
    0

    Default Re:Free web counter?

    This is a basic counter written in PHP.

    place the text in a file named whatever.php
    ----------------------------------------------------
    <?
    if(file_exists("counter.txt&quot)
    {
    $fp = fopen("counter.txt", "r"
    $count = fgets($fp, 255);
    $count++;
    fclose($fp);
    print("This site has had $count hits"
    $fp = fopen("counter.txt", "w"
    fputs($fp, $count);
    fclose($fp);
    }
    else
    {
    $fp = fopen("counter.txt", "w"
    fputs($fp, "1"
    print("This site has had 1 hit"
    fclose($fp);
    }
    ?>
    ------------------------------------------------------
    then wherever on your page you want the counter to apear write:
    require "whatever.php";

    If your site is on a Unix/Linux server, you'll have to change the write permissions on the counter.txt file from a shell.

    type this in your terminal:

    $ touch counter.txt <return>
    $ chmod 777 counter.txt <return>

  5. #5
    Join Date
    Jun 2002
    Posts
    648
    Rep Power
    0

    Default Re:Free web counter?

    Thanks

  6. #6
    Join Date
    Aug 2002
    Posts
    193
    Rep Power
    0

    Default Re:Free web counter?

    [quote author=CKnight link=board=10;threadid=110;start=0#513 date=1030634457]
    This is a basic counter written in PHP.

    place the text in a file named whatever.php
    ----------------------------------------------------
    <?
    if(file_exists("counter.txt&quot)
    {
    $fp = fopen("counter.txt", "r"
    $count = fgets($fp, 255);
    $count++;
    fclose($fp);
    print("This site has had $count hits"
    $fp = fopen("counter.txt", "w"
    fputs($fp, $count);
    fclose($fp);
    }
    else
    {
    $fp = fopen("counter.txt", "w"
    fputs($fp, "1"
    print("This site has had 1 hit"
    fclose($fp);
    }
    ?>
    ------------------------------------------------------
    then wherever on your page you want the counter to apear write:
    require "whatever.php";

    If your site is on a Unix/Linux server, you'll have to change the write permissions on the counter.txt file from a shell.

    type this in your terminal:

    $ touch counter.txt <return>
    $ chmod 777 counter.txt <return>
    [/quote]

    Yow man... this is really nice. I'm reading this and it just makes me get all teary inside. Yeh.. this is deep, this is what the Internet shud b about.

    Keep it up guys, that's really kewl!

  7. #7
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:Free web counter?

    [quote author=markswan link=board=10;threadid=110;start=0#2097 date=1038754153]
    Im blending een..you cant see me..
    [/quote]

    markswan, welcome and feel free to blend een ;D

  8. #8
    Join Date
    Aug 2002
    Posts
    1,257
    Rep Power
    0

    Default Re:Free web counter?

    Think u could write a guestboob script 4 me.. ;D
    Nice work...

  9. #9
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:Free web counter?

    [quote author=Tech_Guru link=board=10;threadid=110;start=0#2108 date=1038781071]
    Think u could write a guestboob script 4 me.. ;D
    Nice work...
    [/quote]

    I'll leave the writing to Superman err...sorry...CKnight ;D The best that I can do is point you to a free one - http://www.boesch-it.de/sw/simpgb.php

  10. #10
    Join Date
    Jul 2002
    Posts
    818
    Rep Power
    0

    Default Re:Free web counter?

    [quote author=Chris link=board=10;threadid=110;start=0#2117 date=1038783808]
    [quote author=Tech_Guru link=board=10;threadid=110;start=0#2108 date=1038781071]
    Think u could write a guestboob script 4 me.. ;D
    Nice work...
    [/quote]

    I'll leave the writing to Superman err...sorry...CKnight ;D The best that I can do is point you to a free one - http://www.boesch-it.de/sw/simpgb.php
    [/quote]

    After loking at the features of that guestbook, I must say it seems rich. More like a forum than a guestbook.

    A comparable one would probably take me a whole day to write so I suggest you go with that one.

Posting Permissions

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