Help me find this script!

He has: 5 posts

Joined: May 2005

Hey guys, I've been looking for a script similar to the one used at http://www.wkhvideos.com. Underneath where it says "top hit bringers".

I contacted the webmaster of that site, but since the code is in ASP, and not PHP, my host can't support it.

Anyone know where i could get one?

They have: 33 posts

Joined: Sep 2004

Have you tryed looking for it at hotscripts.com ?

Greg K's picture

He has: 2,145 posts

Joined: Nov 2003

Did he actually offer it in ASP to you, or tell you where he got it? If he told you where to get it, post it here as it might help people point you in the right direction.

Off the top of my head, probably wouldn't be too hard to write, if i had time i'd do it for ya. Have a database to hold refering URL, a title (you can hand add as you find new listings) and a count.

Each time a page is called, if the refer isn't blank, and it's not your site, look to see if it is in the database, if so, increase it's count by 1, if not, add it setting it's count to zero (posibly also e-mail you so you know to go look and set the "title".

Come to think of it, you may want a "link" field inthe database, so if you want sites listed to link to a page other than the actual page that linked to you, you can do that (ie. http://www.mydomain.com/links02.html is the referer, but you want people to go to http://www.mydomain.com/ when they click on it in your list)

Lastly, do a simple query of the data, sorting by the count, and limiting it to how many you want to display. Send that info to the browser.

Piece of cake Wink

-Greg

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.