Help I Need a Fake Vistor Counter!

Discussion in 'HTML & Website Design' started by fishsticks, Jul 7, 2009.

  1. #1
    Like the title says... I want a visitor counter can I can control by say increasing the count by 7 every 10 visitors or so. Something that I can modify to increase at variable rates!

    Anybody have any ideas?
     
    fishsticks, Jul 7, 2009 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    You can make a simple PHP counter, and then just change the way it counts.
    You could use rand() to set 1/10 visitors to bump the counter by 7 hits.

    EDIT

    Try this:
    1. Create a txt file called "fakecounter.txt" on your server
    2. Then try this:
    <?php
    if (rand(1,10)==1){$addcounter=7;}else{$addcounter=1;}
    $hits = file_get_contents("fakecounter.txt");
    $hits = $hits + $addcounter;
    $handle = fopen("fakecounter.txt", "w");
    fwrite($handle, $hits);
    fclose($handle);
    print $hits;
    ?> 
    PHP:
     
    Kerosene, Jul 7, 2009 IP
  3. fishsticks

    fishsticks Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    epic thanks!
     
    fishsticks, Jul 7, 2009 IP
  4. rushi

    rushi Active Member

    Messages:
    210
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    I have no idea about the one u r asking for,
    but there are many counters which allow u to modify the counter number
    like u can start the counter number from 5000
    then say after 2 days, change it to 7000 like on,
    but u have to do this manually...
     
    rushi, Jul 7, 2009 IP