Results 1 to 2 of 2
I want to track the number of requests that a file gets downloaded and viewed.
What I have is mp4 files on the server and they could either get played ...
- 04-10-2011 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 15
tracking file requests
I want to track the number of requests that a file gets downloaded and viewed.
What I have is mp4 files on the server and they could either get played in
flash player or downloaded via mobile or whatever.
I need to see how many times that files gets downloaded or viewed. Since its
in a php page I am able to track the number of views. But I want to able to track
the direct downloads.
I was thinking something along the lines of htaccess redirect to php then to file.
But that would mess up the player from playing the file I would think. I am not
sure how to make that happen with the htaccess either though.
Any help would be so greatly appreciated! Thanks in advance!
- 04-10-2011 #2Just Joined!
- Join Date
- Apr 2009
- Posts
- 15
Ok so the player works ok with just putting direct.php in the play link and
then putting a forward to the file in the direct.php page it works.
So now if I can figure out the .htaccess file
I think if the rule would be when this.mp4 gets called redirect to
direct.php? and then i want to get the current folder and current file
so direct.php?id1=folder&id2=this.mp4
then i could count that d/l and put in db and forward to the original mp4.file.


Reply With Quote