counter on files?

ludlo

OSNN Addict
Joined
7 Dec 2001
Messages
96
hello

im running sambar server on a computer at home, and i need to check how many times a file has been downloaded, or start checking that.

how can i code this?

thanks
 

Zedric

NTFS Guru
Joined
12 Jan 2002
Messages
4,006
[Edit]Oh dear, i read Apache, not Samba. :D Well in Samba, I have nooo idea, not even sure it's possible. Especially since you don't really "download" through Samba.


** Old crap**

You could du it by using a small tracker and link to that instead of the file.

Like file.zip becomes dltracker.php?file=file.zip

The dltracker.php just increments the counter (in a file or database or whatever, your choice) and redirects to file.zip. This would however not work with direct links.

Another choice would be to parse through the Apache access logs to find the number of hits. This could get a bit messy though. ;)
 

ludlo

OSNN Addict
Joined
7 Dec 2001
Messages
96
well, dont know what samba is but im using SAMBAR web server :) but apache seems better, will download it and learn it. is it difficult to use apache?
 

Zedric

NTFS Guru
Joined
12 Jan 2002
Messages
4,006
ludlo said:
well, dont know what samba is but im using SAMBAR web server :) but apache seems better, will download it and learn it. is it difficult to use apache?
Oooohhh sambaR, *doh*, my mistake. :D Never heard of it.

Apache is definately good, it's the most widely used on the net (I think). It's not very hard to use, but I don't know how easy sambar is so. ;)


Samba btw is software you can use to share files between a Linux computer and a Windows computer for instance.
 

ludlo

OSNN Addict
Joined
7 Dec 2001
Messages
96
ahaa =) okej then i know what samba is :p

in sambar, you put your html files under sabar/docs/ and the you start it. not too much of setting up :p
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,997
Messages
673,411
Members
5,589
Latest member
EmilyFox