Jump to content

Some help with, a download counter


Hughesy1986

Recommended Posts

Hi guys!

I am currently making a cms for my portfolio and in the script section I need to record the amount of times that a download has been clicked, how do i go about this? anyone know any good tuts? i dont want someone to do it for me just need pointing in the right direction, also i just want to write it to a txt file.

Many Thanks

Glen
Link to comment
Share on other sites

Well, yes, there is. And a whole lot of ways to do it aswell.

You could just make a counter script of some sorts.

http://www.yoursite.com/count.php?urlid=4

Then have a small database or text file containing the id's and the url itself. The count script should redirect to the specified URL upon entering an id.

Something like http://php.about.com/od/finishedphp1/qt/track_links.htm

You could.. just count hits when the page you're linking to is loaded, altho that's probably a bad way as the user could just open the page without clicking the link itself hehe. There's alot of ways!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.