Loading ...
Sorry, an error occurred while loading the content.

Re: [phpXperts] Visitors Number

Expand Messages
  • Kristiono Setyadi
    You can use their IP as their session, but this way you have minimal two points to cover: 1. This trick fail with the user who used shared IP or public IP.
    Message 1 of 7 , Aug 27, 2008
    • 0 Attachment
      You can use their IP as their session,
      but this way you have minimal two
      points to cover:

      1. This trick fail with the user who used
          shared IP or public IP. Instead of
          recording 5 users (with the same IP),
          you can only record them only 1 IP.

      2. You have to set the die time for the
          session (time limited, of course). If you
          don't, then your website will get the
          lot of visitors online.

       
      Kristiono Setyadi

      Web and .NET Programmer
      CitraWeb Nusa Infomedia
      http://www.citra.web.id

      http://ksetyadi.blogs.friendster.com/


      ----- Original Message ----
      From: Raquibul Islam <rana_cse_05@...>
      To: phpexperts@yahoogroups.com
      Sent: Tuesday, August 26, 2008 11:07:20 PM
      Subject: [phpXperts] Visitors Number

      Hello experts
      How can i count how many people are now browsing my site ?


    • Asif Anwar
      Hi Rana Vai, Use Google Analytics for best insights on your traffic information. Statcounter
      Message 2 of 7 , Aug 27, 2008
      • 0 Attachment
        Hi Rana Vai,

        Use Google Analytics for best insights on your traffic information. Statcounter is also good for individual traffic investigation. Providing traffic information is just one of the feature they provide. You can also see the time spent on site, where the visitor came from, which keyword the visitor used in Search Engine to come to your site, which operating system and browser they were using, which city they are from, which ISP were they using, what their IP, etc.

        After registration, they will provide you script to embed in your sites codes. After embedding the code, you can log into the Web Analytics System and get the insights.

        Regards.

        --
        Asif Anwar
        Search and Internet Marketing Professional in Bangladesh.

        Business Development Associate
        Grameen Solutions

        On Tue, Aug 26, 2008 at 10:07 PM, Raquibul Islam <rana_cse_05@...> wrote:

        Hello experts
        How can i count how many people are now browsing my site ?




        --
        Asif Anwar
        Business Development Associate
        Grameen Solutions
        Email: asif.anwar@... (GTalk)
        Office PABX: +880 (2) 802-1647 or +880 (2) 802-1648 extn. 122
        Mobile: +880 (17) 121 81761

        -------------------------------------------------------------------
        N.B. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. It may also be legally privileged. If you are not the named addressee, you should not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
        -------------------------------------------------------------------
      • Raquibul Islam
        Can u please show that with an example ? Regards RANA/রানা http://ranacse05.wordpress.com ... From: Kristiono Setyadi Subject: Re:
        Message 3 of 7 , Aug 27, 2008
        • 0 Attachment
          Can u please show that with an example ?

          Regards
          RANA/রানা
          http://ranacse05.wordpress.com

          --- On Wed, 8/27/08, Kristiono Setyadi <viaris@...> wrote:
          From: Kristiono Setyadi <viaris@...>
          Subject: Re: [phpXperts] Visitors Number
          To: phpexperts@yahoogroups.com
          Date: Wednesday, August 27, 2008, 3:20 AM

          You can use their IP as their session,
          but this way you have minimal two
          points to cover:

          1. This trick fail with the user who used
              shared IP or public IP. Instead of
              recording 5 users (with the same IP),
              you can only record them only 1 IP.

          2. You have to set the die time for the
              session (time limited, of course). If you
              don't, then your website will get the
              lot of visitors online.

           
          Kristiono Setyadi

          Web and .NET Programmer
          CitraWeb Nusa Infomedia
          http://www.citra. web.id

          http://ksetyadi. blogs.friendster .com/


          ----- Original Message ----
          From: Raquibul Islam <rana_cse_05@ yahoo.com>
          To: phpexperts@yahoogro ups.com
          Sent: Tuesday, August 26, 2008 11:07:20 PM
          Subject: [phpXperts] Visitors Number

          Hello experts
          How can i count how many people are now browsing my site ?



        • Azizul Islam
          here is code: http://azizulislam.wordpress.com/2008/01/10/unique-hit-counter-using-phpmysql/ and example http://www.samren.org Hope this will help. Regards,
          Message 4 of 7 , Aug 27, 2008
          • 0 Attachment
            here is code:
            http://azizulislam.wordpress.com/2008/01/10/unique-hit-counter-using-phpmysql/
            and example
            http://www.samren.org

            Hope this will help.

            Regards,
            Azizul Islam
            http://azizulislam.blogspot.com
            http://azizulislam.wordpress.com


            --- On Wed, 8/27/08, Kristiono Setyadi <viaris@...> wrote:
            From: Kristiono Setyadi <viaris@...>
            Subject: Re: [phpXperts] Visitors Number
            To: phpexperts@yahoogroups.com
            Date: Wednesday, August 27, 2008, 3:20 AM

            You can use their IP as their session,
            but this way you have minimal two
            points to cover:

            1. This trick fail with the user who used
                shared IP or public IP. Instead of
                recording 5 users (with the same IP),
                you can only record them only 1 IP.

            2. You have to set the die time for the
                session (time limited, of course). If you
                don't, then your website will get the
                lot of visitors online.

             
            Kristiono Setyadi

            Web and .NET Programmer
            CitraWeb Nusa Infomedia
            http://www.citra. web.id

            http://ksetyadi. blogs.friendster .com/


            ----- Original Message ----
            From: Raquibul Islam <rana_cse_05@ yahoo.com>
            To: phpexperts@yahoogro ups.com
            Sent: Tuesday, August 26, 2008 11:07:20 PM
            Subject: [phpXperts] Visitors Number

            Hello experts
            How can i count how many people are now browsing my site ?



          • Kristiono Setyadi
            I ll give you an example. Someone visit your website. It must be the file index.php (or everything you associate with your first page). When the user visit
            Message 5 of 7 , Aug 28, 2008
            • 0 Attachment
              I'll give you an example.
              Someone visit your website. It must be
              the file index.php (or everything you associate with
              your first page). When the user visit that page,
              you can start the session and set the IP address
              of the visitor into the session.

              ------ php code begin here -------
              <?php
              session_start();

              $ipAddress = $_SERVER['REMOTE_ADDR'];

              $_SESSION[$ipAddress] = $_SERVER['PHP_SELF'];

              ----- php code end here ----------

              Now you have a visitor's IP address and the
              page he/she actually browsing now.

              Example, there are 5 visitors in your site and
              they access different page:

              111.111.111.111 access index.php
              222.222.222.222 access aboutus.php
              333.333.333.333 access contact.php
              444.444.444.444 access admin.php
              555.555.555.555 access webmail.php

              They will be saved in this way:

              $_SESSION['111.111.111.111'] = index.php
              $_SESSION['222.222.222.222'] = aboutus.php
              $_SESSION['333.333.333.333'] = contact.php
              $_SESSION['444.444.444.444'] = admin.php
              $_SESSION['555.555.555.555'] = webmail.php

              Now you can save the information directly to
              database.

              At this time, you can retrieve it in the Who's Online
              page or any page to view the online information
              the same way you retrieve information from
              database.

              But of course, this trick have limitations I have
              already mentioned before.

               
              Kristiono Setyadi

              Web and .NET Programmer
              CitraWeb Nusa Infomedia
              http://www.citra.web.id

              http://ksetyadi.blogs.friendster.com/


              ----- Original Message ----
              From: Raquibul Islam <rana_cse_05@...>
              To: phpexperts@yahoogroups.com
              Sent: Wednesday, August 27, 2008 8:59:16 PM
              Subject: Re: [phpXperts] Visitors Number

              Can u please show that with an example ?

              Regards
              RANA/রানা
              http://ranacse05. wordpress. com

              --- On Wed, 8/27/08, Kristiono Setyadi <viaris@yahoo. com> wrote:
              From: Kristiono Setyadi <viaris@yahoo. com>
              Subject: Re: [phpXperts] Visitors Number
              To: phpexperts@yahoogro ups.com
              Date: Wednesday, August 27, 2008, 3:20 AM

              You can use their IP as their session,
              but this way you have minimal two
              points to cover:

              1. This trick fail with the user who used
                  shared IP or public IP. Instead of
                  recording 5 users (with the same IP),
                  you can only record them only 1 IP.

              2. You have to set the die time for the
                  session (time limited, of course). If you
                  don't, then your website will get the
                  lot of visitors online.

               
              Kristiono Setyadi

              Web and .NET Programmer
              CitraWeb Nusa Infomedia
              http://www.citra. web.id

              http://ksetyadi. blogs.friendster .com/


              ----- Original Message ----
              From: Raquibul Islam <rana_cse_05@ yahoo.com>
              To: phpexperts@yahoogro ups.com
              Sent: Tuesday, August 26, 2008 11:07:20 PM
              Subject: [phpXperts] Visitors Number

              Hello experts
              How can i count how many people are now browsing my site ?




            Your message has been successfully submitted and would be delivered to recipients shortly.