PHP Tutorials: Unique Visitor Counter (Part 1)


Thіѕ works іn thе way thаt іf a user hаѕ visited thе page before (based οn thеіr IP address), thеіr hit wіll nοt bе counteract. If a visitor іѕ nеw tο thе page, a hit wіll bе counteract аnd thеіr IP address stored fοr future checking.

9 Responses to “PHP Tutorials: Unique Visitor Counter (Part 1)”

  • Dizy8 says:

    4:43 thats what i need :D

  • lnorby06 says:

    He don’t even have to use a loop to determine whether an ip already exists in the file.

    Just use this:
    if (in_array($_SERVER['REMOTE_ADDR'],$ip_file)) fwrite($visitornum_new,$file);

  • vb6help says:

    which means you could use cookies, scrumptious! xD

  • gyrgrls says:

    IP logging is not dependable,
    as more and more broadband subscribers
    have dynamic IP addresses, due to the
    dwindling number of available CIDR blocks
    to providers below IPV4.

  • phpacademy says:

    I’m a YouTube partner

  • ekkkkkknoes says:

    How you made this “Why not subscribe?” on top your Description?

  • peteusz says:

    Why didn’t you use foreach instead of for loop? It would save a lot of work…

  • easygoldmoneyfast says:

    There’s a another excellent program to make money online is called chattotext and you can use it to get GDI Sign Ups, for more info go to
    easygoldmoneyfast . com
    i just ongoing and i am already making money
    easygoldmoneyfast . com

  • omanoman98 says:

    Nice Video, looking forward to the next one! Thanks

Leave a Reply

You must be logged in to post a comment.