Hi, I am working on a download page where a PHP tracking program will keep record of the number of downloads for a particular file.

Can you tell me the keys on how to redirect people to download a file while increments the number of downloads?

I read somewhere that the URL is like this

but people click on this URL, the program will prompt the user of the location for which the file will be stored and a number will increment by one in the database.

How do I do this? Also, I wanna to do this for 2 obvious reasons:
1. To avoid people linking to my file
2. To keep track of the number of downloads