need a code for simple visits counter

Discussion in 'HTML & Website Design' started by hoo0d, Oct 20, 2005.

  1. #1
    hi,
    need a code for simple visits counter , not designed counter-simple 1 that show the numbers in simple text.

    thanks.
     
    hoo0d, Oct 20, 2005 IP
  2. MiamiHost

    MiamiHost Peon

    Messages:
    238
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    something like this?

    <?php
    /* counter */
    $datei = fopen("countlog.txt","r"); //opens countlog.txt to read
    $count = fgets($datei,1000);
    fclose($datei);
    $count=$count + 1 ;
    echo "<CENTER><FONT SIZE=\"3\" FACE=\"arial, verdana, helvetica\">you are vistor no.</FONT></CENTER>" ;
    echo "<CENTER><FONT SIZE=\"3\" FACE=\"arial, verdana, helvetica\">$count</FONT></CENTER>" ;
    echo "\n<br>" ;
    $datei = fopen("countlog.txt","w"); // opens to write and deletes the old count
    fwrite($datei, $count);
    fclose($datei);
    ?>


    h**p://www.arttrust.de/aslp_web/php/scripts/counter/counter.php3
     
    MiamiHost, Oct 23, 2005 IP
  3. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    You could also try statcounter.com for free site stats. The free version is limited, but very good for starters.

    T
     
    Amsterdam, Oct 24, 2005 IP
  4. CanaryWoolf

    CanaryWoolf Peon

    Messages:
    114
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I agree statcounter is great for starters and it's free. Do not - I repeat do not put a visable counter on your website - why would you want to?? To tell everyone how few visitors you get???? No, make use of a free stats package which will tell you where people have come from, what pages they visited, what keywords they used, which search engines etc. etc
     
    CanaryWoolf, Oct 25, 2005 IP
  5. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #5
    i agree, and for statcounter: it's the only one that's free and invisible as far as i know...
     
    SedNaX, Oct 29, 2005 IP
  6. mitchandre

    mitchandre Peon

    Messages:
    313
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Its not a big deal, I started with my counter at 0 unique IP hits visible to everyone and now its 378,000.
     
    mitchandre, Oct 29, 2005 IP
  7. aqi32

    aqi32 Active Member

    Messages:
    225
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #7
    naahh, there's hundreds out there, try googling free invisible hit counter
     
    aqi32, Oct 31, 2005 IP
  8. duenna

    duenna Peon

    Messages:
    104
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8

    Hello!

    Can I ask a question does your hosting not provide access to reliable stats? Stat counters are all and well and they have their place. But in some places its like haveing a mirror on your website, for pure vanity.

    If you really are serious about your website which I am sure you are then you need to get a stats package that looks at your server logs. All the information is there! In terms of promoting your website and guageing its performance you need to do this!!!

    Good Luck!
     
    duenna, Nov 1, 2005 IP
  9. zhisede

    zhisede Peon

    Messages:
    103
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    zhisede, Nov 3, 2005 IP