Jump to content

Recommended Posts

Hello,

 

Looking for help.  Need to keep track of when a download takes place, basically a hit on a file.  I have an overall counter functioning and working.  I need to track by Month and Year as well.  Not sure how to set up database.  My first thought was just insert a new entry each time.  Example:  click on file A then insert into database file A, date.  Then I can count how many times for a particular month or year for that file was entered. 

 

My question is, does this sound ok or is there another way?  It seems that this database will get really big over the years.  Any suggestions or examples/guidance would be great if I am way off.

 

Thanks in advance.

 

???

Link to comment
https://forums.phpfreaks.com/topic/165564-trackingdatabase-setup/
Share on other sites

If you want precise information about each download you will have to insert a new row into the database each time someone downloads it. Yes, it'll grow with time, but that's the price you will have to pay for detailed logs.

 

Alternately you can just read your web server's access logs.

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.