Anyone know simple link counter script written in php?

Features I need.
- Generate top-10 (or more) list to .php pages.
- Just put click.php?http://www.something.com to count clicks. No scripts that needs links added to database.

Hit me some URL:s if you know good ones.

    Okay! Now I have looked Hotscripts.com thru and many other places. There are tons of great scripts, but all seems to be portal, link indexing, complex toplist or they don't have feature to pull top-10 list to my site. 😕

    I don't know php very well so I'm looking script to download.

    I have one of my sites simple counter script that generates number of clicks to my admin area, but I don't know how to get that TOP-10 to my site. It show all links without names. Like this.. www.something.com
    www.anythinggoes.com
    www.fjdhffdiu.com

    I want TOP-10 list with names.

    Please help if you know some good. I really appreciate it.

      Hi Zoffi!

      Im not sure i understand what you need.
      More precisely, what do you mean with "link counter"?

      Do you want to get a list of links in your site, a 3rd party site, do you want to get an idea of your visitor's clicking behaviour, do you want to log that?

      if it's ok for you to use javascript and if you dont mind changing the site with the links you could do the same as done in the example below

      http://www.phpbuilder.com/board/showthread.php?s=&threadid=10250686

      just dont open new windows and forget the timeout thing, but send the array with the logging data to your server now and then...

      im not sure thats what you want but it might be a start.

      greetings, jakob

        I mean script that counts clicks going to links I have in website.

        Just need to count click, no need for visitor stats etc. And produce top-10 list of those counts.

        Basicly top-10 should just show 10 most clicked outgoing links in my site. No fancy stuff.

          I understand what you want.
          Basically you need to put all your links into a database and createa a file called out.php
          In out query for the ID of the link clicked and add 1 to out every time someone clicks on it.

            Originally posted by Archbob
            I understand what you want.
            Basically you need to put all your links into a database and createa a file called out.php
            In out query for the ID of the link clicked and add 1 to out every time someone clicks on it.

            Yep! That sounds good. But even better if I don't need to put links to database, just use out.php?www.something.com -method.

            Hopely this gives some sense to this... :rolleyes:
            Tired.. gotta sleap now.

              Or do you know top-list script that counts clicks made to links in my site and generate top-10 list of these?

              I see tons of excelent regular top-lists, but this doesn't be so complex.

                Hmmm...
                Write the thing yourself, i'd say, its not that hard.

                like archbob said, you will have to save the data on the numer of clicks somewhere, file or database doesn't matter, but i think a database is more comfortable to handle...
                however.

                if you update your db after every click you produce more traffic than necessary, in my opinion. i'd go for capturing the stuff clientsided and sending it to the db every n seconds or when the visitor leaves the navigation page.

                if you want help doing that ill be glad to help, but if you want something, code it yourself.
                copying is ok to some extent - where it comes to punching in some really dumb code - but that stops where your knowledge stops, i think. if you want or need more, learn it. it's not that hard.

                excuse the last if i'm wrong, but i didn't get the impression you were interested in a solution but in the work all done. you will get the first, always, the latter, not.

                greetings, jakob

                  Thanks for replies!

                  But I already got all working I wanted. I wrote about that in coding section.

                    Write a Reply...