Php Download Counter

Support, Snippets & Projects

Moderators: Moderator, Global Moderator

Post Reply
Marko
Global Moderator
Global Moderator
Posts: 960
Joined: Thu May 20, 2004 7:12 am

Php Download Counter

Post by Marko »

hey i was wondering if anyone knows a simple php code to display the number of times a file has been downloaded.
I have searched on google but i keep getting info on site stats, so can anyone help?

Thanks
Image
Scott
Administrator
Administrator
Posts: 1651
Joined: Sun Apr 25, 2004 1:08 pm

Php Download Counter

Post by Scott »

I\'d be tempted to write one myself - are you using a database you store the download files? I\'d also suggest checking the php section on [url=\"http://www.hotscripts.com\"]HotScripts[/url] if you wanted to download one.
Vercz
Hero Member
Hero Member
Posts: 1915
Joined: Sun May 09, 2004 6:13 am

Php Download Counter

Post by Vercz »

[color=\"green\"]i was playing with the idea of writing one for you..but it seemed a little complicated in my head..and i couldnt get it onto dreamweaver for some reason..just wasnt working for me <img src=\'http://www.killanet.net/forum3/public/s ... >/blum.gif\' class=\'bbc_emoticon\' alt=\':P\' />

Hotscripts is a good place to start <img src=\'http://www.killanet.net/forum3/public/s ... igwink.gif\' class=\'bbc_emoticon\' alt=\';)\' /> [/color]
Image

Image
Marko
Global Moderator
Global Moderator
Posts: 960
Joined: Thu May 20, 2004 7:12 am

Php Download Counter

Post by Marko »

yeh i\'ll try hotscripts, basiclt what i\'m looking for is something that counts how many times a link has been clicked.
and vercz you dont need to write one for me, unless you plan on writing one for yourself, otherwise its not worth it.

nope no databse, i just have my downloads locaated in folders and such. I\'m no good with php, actully i dont know any so yeh.
Image
Sp3culuM
Hero Member
Hero Member
Posts: 662
Joined: Mon May 17, 2004 2:36 pm

Php Download Counter

Post by Sp3culuM »

I'll write one as a tutorial for my site once I get the backend finished. Have been working on it all day, gonna work on it tomorrow too. May not have the tutorial done for a week or so though, if you can wait that long. Are you looking to use flat file (.txt) or a db (mysql)?
Image
Marko
Global Moderator
Global Moderator
Posts: 960
Joined: Thu May 20, 2004 7:12 am

Php Download Counter

Post by Marko »

i can wait, i\'m prob looking to use flatfile coz like i said i\'m a newbie at this stuff so i dont know how to use mysql
Image
Post Reply

Return to “PHP &amp; MySQL”