Forum Moderators: coopster

Message Too Old, No Replies

controlling download

of a specific file

         

kumarsena

3:34 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



hey,

i have a few files on my server that can be downloaded by usig the url. but since these are not html or php files i cant really put a counter on them or some php script on them. is audio clips. and the user accesses tehm from a link i sent them by email. how can i now find out if this file has been downloaded and how many times?

thansk
kumar

jatar_k

4:42 pm on Feb 20, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Why not send them a link to a php file that serves the download or grep your apache logs for the number of GET's to that filename.

Herath

4:43 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



kumarsena
You could simply look in your access log to see how many times this file was donwloaded. Or use a log analyser and set a filter for the file name.

kumarsena

11:53 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



hey,

yeah i tought about sendin a link to a php file that serves teh download. but i would like to know the stats so far since i sent the links. i guess i have the logs. how do i do this? im not the apache admin.

thanks
kumar

jatar_k

2:49 am on Feb 21, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



then ask your admin to grep the logs for the filename and save them to a file if you can. ;)

Otherwise you can use search in your text editor of choice to find the number of occurences of that filename in your logs

webadept

3:34 am on Feb 21, 2004 (gmt 0)

10+ Year Member



greping the logs won't be all that accurate in the raw state, the web-bots will register that as well, so you will want to take out any hit from them to get a true picture.

The idea of having a php download is better. Just my 2cents

kumarsena

5:09 pm on Feb 21, 2004 (gmt 0)

10+ Year Member



thanks guys