Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Hit COunter

  1. #1
    Join Date
    Jun 2007
    Posts
    1,757
    Tokens
    105

    Latest Awards:

    Default Hit COunter

    Anyone know the code for a basic hit counter? google brings up a load of crap
    Get back imma let my gat go,
    got a itchy finger... imma leave a fat hole.
    - Giggs :: Ruthless Freestyle

    I owe rep to - .:Jack120:. HabbDance

  2. #2
    Join Date
    Dec 2007
    Posts
    1,777
    Tokens
    0

    Latest Awards:


  3. #3
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    for really extremely basic, just everytime on page load update a value in mysql +1 and then retrieve it to display it.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #4
    Join Date
    Feb 2008
    Location
    Plymouth
    Posts
    1,073
    Tokens
    0

    Latest Awards:


  5. #5
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php
    $count_my_page 
    = ("hitcounter.txt");
    $hits file($count_my_page);
    $hits[0] ++;
    $fp fopen($count_my_page "w");
    fputs($fp "$hits[0]");
    fclose($fp);
    echo 
    $hits[0];
    ?>
    http://www.developingwebs.net/phpclass/hitcounter.php
    Lets set the stage on fire, and hollywood will be jealous.

  6. #6
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    /\ hard way around a simple solution...
    ||
    How could this hapen to meeeeeeeeeeeeeee?lol.

  7. #7
    Join Date
    Jun 2007
    Posts
    1,757
    Tokens
    105

    Latest Awards:

    Default

    Nah, i dont want one with a background
    Quote Originally Posted by Bojangles View Post
    goes up everytime you refresh.

    Quote Originally Posted by Tom743 View Post
    PHP Code:
    <?php
    $count_my_page 
    = ("hitcounter.txt");
    $hits file($count_my_page);
    $hits[0] ++;
    $fp fopen($count_my_page "w");
    fputs($fp "$hits[0]");
    fclose($fp);
    echo 
    $hits[0];
    ?>
    http://www.developingwebs.net/phpclass/hitcounter.php
    i want a html code. Because when i paste that where i want it on dw, it comes up as a box with php in it.
    Get back imma let my gat go,
    got a itchy finger... imma leave a fat hole.
    - Giggs :: Ruthless Freestyle

    I owe rep to - .:Jack120:. HabbDance

  8. #8
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Gangster View Post
    Nah, i dont want one with a background

    goes up everytime you refresh.


    i want a html code. Because when i paste that where i want it on dw, it comes up as a box with php in it.
    You cant get a html hit counter...
    Lets set the stage on fire, and hollywood will be jealous.

  9. #9
    Join Date
    Jun 2007
    Posts
    1,757
    Tokens
    105

    Latest Awards:

    Default

    Quote Originally Posted by Tom743 View Post
    You cant get a html hit counter...
    kk .

    Edited by Hitman (Forum Moderator): Please don't post pointlessly.
    Last edited by Hitman; 16-03-2008 at 07:41 PM.
    Get back imma let my gat go,
    got a itchy finger... imma leave a fat hole.
    - Giggs :: Ruthless Freestyle

    I owe rep to - .:Jack120:. HabbDance

  10. #10
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    it will come up as a box with php in it, as you're not on a server, php is server side code, and cannot be used offline.
    How could this hapen to meeeeeeeeeeeeeee?lol.

Page 1 of 2 12 LastLast

Posting Permissions

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