Shoutbox

Download counter - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Download counter (/showthread.php?tid=49178)

Download counter by John Anderton on 08-19-2005 at 10:39 AM

Is there a way you can have your wordpress (or a non wp affiliated way ... i dont care :P) to have a script to which i can redirect for downloads like ....
/download.php?fid=1 will download a certain file and /download.php?fid=2 will download another file.
Later i should be able to see how many time a file has been downloaded.
How can i do that ??


RE: Download counter by Stigmata on 08-19-2005 at 10:45 AM

http://www.gtmf.us


http://www.zend.com/codex.php?id=198&single=1


RE: Download counter by absorbation on 08-19-2005 at 10:49 AM

quote:
Originally posted by John Anderton
Is there a way you can have your wordpress (or a non wp affiliated way ... i dont care :P) to have a script to which i can redirect for downloads like ....
/download.php?fid=1 will download a certain file and /download.php?fid=2 will download another file.
Later i should be able to see how many time a file has been downloaded.
How can i do that ??

give me that script i'm after one :P
RE: Download counter by John Anderton on 08-19-2005 at 10:51 AM

quote:
Originally posted by Stigmata
http://www.gtmf.us
Dont you think i tried that stiggeh :dodgy:
</3 stig :sad:

Update:
In that script i have to state the whole name of the file. The whole point of the script was ....
  • Not to have to state the whole name
  • Count the number of downloads

So now ???
RE: Download counter by absorbation on 08-19-2005 at 11:19 AM

<?
$counter = "msnmandownloadsstats.txt";
$fp = fopen($counter, "r");
$count = fread($fp, filesize($counter));
$count++;
fclose($fp);
$fp = fopen($counter, "w");
fwrite($fp, $count);
fclose($fp);
?>

<meta http-equiv="refresh" content="1;url=msnman.php>

that is per file the msnman.php is the file

and the text file to write to is at the top and must be chmoded to 777 :)

i want one that does'nt have to use a new text and php file everytime ;) and uses like id=1 id=2 for every different file ;)

the server uses php 4


RE: Download counter by John Anderton on 08-19-2005 at 11:25 AM

Thats exactly what i mean abs ... the one stiggy gave has to have the whole name printed. Apart from that its perfect (apart from the fact that all the files should be in one folder which they will be for me)
All i needed was a way to have a fid (file-id)
Could someone just edit the script that stiggy pointed to have a fid
All you would need to edit is the code at the bottom and a place to say which fid number stands for which file.
I hope i was clear enough cause i thought i was :P


RE: Download counter by absorbation on 08-20-2005 at 09:14 PM

lee jeffery made me one using a database however you cannot display the stats to the user :(


RE: Download counter by Eljay on 08-20-2005 at 09:19 PM

quote:
Originally posted by Absorbation
lee jeffery made me one using a database however you cannot display the stats to the user :(

you didnt tell me you wanted stats per file, i already told you on msn i could easily add that but you didnt seem to listen 8-)
RE: Download counter by absorbation on 08-20-2005 at 09:24 PM

quote:
Originally posted by Lee Jeffery
quote:
Originally posted by Absorbation
lee jeffery made me one using a database however you cannot display the stats to the user :(

you didnt tell me you wanted stats per file, i already told you on msn i could easily add that but you didnt seem to listen 8-)

you can :O omg you can you seemed to blank me after lol :P
RE: Download counter by Tasha on 08-20-2005 at 10:35 PM

I use this: http://www.phpjunkyard.com/php-click-counter.php

It's very good, and it seems to fit in with what you want to be done. :happy:


RE: Download counter by John Anderton on 08-21-2005 at 03:50 AM

quote:
Originally posted by Lee Jeffery
quote:
Originally posted by Absorbation
lee jeffery made me one using a database however you cannot display the stats to the user :(

you didnt tell me you wanted stats per file, i already told you on msn i could easily add that but you didnt seem to listen 8-)
Stats .... i dont want to show em to the user .... its well and good if only i see it :P



<3 Tasha :kiss:
That seems to be exactly what i want :P
I'll give it a go ;)
Thank god i told you about this on msn before i left last nite :P
RE: Download counter by absorbation on 08-21-2005 at 02:20 PM

lol i could of told you about cccount i dont like it and i want my own :) the one lee jeffery made does this in a database well and his making me another now :)


RE: Download counter by Mike on 08-22-2005 at 09:47 PM

This is the one I use :)

http://www.downloadcounter.com

Hmmm...
The name of the site looks like the thread title eh? :P


RE: Download counter by John Anderton on 08-23-2005 at 07:46 AM

quote:
Originally posted by Mike
This is the one I use :)

http://www.downloadcounter.com

Hmmm...
The name of the site looks like the thread title eh? :P
Ermm .... i thought i did mention it should be free ..... and free of adverts ... tho ccounter has a footer which is illegal to remove :P

quote:
Originally posted by Absorbation
lol i could of told you about cccount i dont like it and i want my own :) the one lee jeffery made does this in a database well and his making me another now :)
U said cccount and this one is ccount
See the difference :P CCCount it something i dont want .... ccount is tho i also want a custom script ..... hows the lj one going ??
RE: Download counter by Veggie on 08-23-2005 at 07:51 AM

the easyist way to do this is to use mysql, i would post my download class but i suposes its too built in to my website


RE: Download counter by John Anderton on 08-23-2005 at 07:58 AM

quote:
Originally posted by Veggie
the easyist way to do this is to use mysql, i would post my download class but i suposes its too built in to my website
There are non sql methods too *-) Like the one im using doesnt use sql tho its still pretty good imo ;)