Daily counter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Daily counter

    Please masters i want daily visits counter code or script,

    #2
    like you mean how many visits a day or a script that only counts one visit per day?

    cause depending on which one, you'd either need to do a date check to confirm day of year n check if 'daily' update on counter done yet, or do a date check to see which date the visit is on, thus meaning in db you can have table name ie: visits... visitdate, userid kinda thing, where you could

    select count where userid = $uid and date = x

    kinda thing, thus telling you exactly how many times users logged in on a daily track record kinda thing...
    Last edited by pmbguy; 19.03.11, 08:19. Reason: extra thouights
    C3 Themes: http://c3themes.wen.ru/index.html
    Find Files: http://mystarter.tk/?goto=X-search

    Comment


      #3
      to catch visit:
      PHP Code:
      $day='1';
      $fp=@fopen("./todayvisit.txt""a");
      @
      fputs($fp"$day");
      @
      fclose($fp); 
      to show:
      PHP Code:
      $visit=@filesize("./todayvisit.txt");
      echo 
      "Visit today: $visit"

      Comment


        #4
        yeah, that's the simplest way to do it... although it just counts how many times the page has loaded... so double posting etc might offset the accuracy...
        C3 Themes: http://c3themes.wen.ru/index.html
        Find Files: http://mystarter.tk/?goto=X-search

        Comment


          #5
          He doesnt need accuracy i guess. He needs to show how many visits he got.Reloadin doesnt matter. ;)

          Comment


            #6
            true i guess, i'll try code a counter script with mysql and a limiter on time for visits counted. I'm bored today, lol
            C3 Themes: http://c3themes.wen.ru/index.html
            Find Files: http://mystarter.tk/?goto=X-search

            Comment


              #7
              Originally posted by rukiya View Post
              Unique Hitcounter
              PHP Code:
              <?php

                $ip
              =$_SERVER[REMOTE_ADDR];

                
              $file=file_get_contents("ipLog.txt");

                if(
              substr_count($file$ip)==0) {

                
              $file.="\n" $ip;

                }

                
              file_put_contents("ipLog.txt"$file);

                
              $total=substr_count($file"\n");
              echo 
              "$total";

              ?>
              make a ipLog.txt in the same directory and chmod777
              There ya go sucker oh i mean brother ;)
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                lol.......Dude.

                Comment


                  #9
                  ok, here's my little coded solution for you...

                  hit counter... coded to basically plug into pretty much any lava script and pretty much anything too, forgive the time spent, imagettf is such a mission getting the text to sit how i want it to, lol...

                  oh and sorry about filesize impact.ttf included

                  enjoy it, and hope it gets used by more people than just me, lol...



                  Oh yeah, that should go up once every 5 minutes, thinking maybe I'll try make that once per 5 minutes with ip log, so it counts all individual hits every 5 minutes...

                  lol, nah can't be bothered...
                  Attached Files
                  Last edited by pmbguy; 19.03.11, 12:22. Reason: adding demo counter image
                  C3 Themes: http://c3themes.wen.ru/index.html
                  Find Files: http://mystarter.tk/?goto=X-search

                  Comment


                    #10
                    Oh ma god, i didnt visited this thread in 3days... Wow wow wow.. Thanks in adv. Wapmasters :-)

                    Comment

                    Working...
                    X