The script I posted does not pass the actual URL of the file to the user, thereby preventing people from linking to it without going through your script.
You could probably incorporate degac's tracking code, but if you're using a database to hold file info, then using the DB for tracking would make sense as well.
You could probably incorporate degac's tracking code, but if you're using a database to hold file info, then using the DB for tracking would make sense as well.