What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Download counter

Pages: (2): « First [ 1 ] 2 » Last »
Download counter
Author: Message:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. Download counter
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 ??
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
08-19-2005 10:39 AM
Profile E-Mail PM Web Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
20 / Other / Flag
Joined: Jul 2003
RE: Download counter
http://www.gtmf.us


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

08-19-2005 10:45 AM
Profile PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Download counter
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
08-19-2005 10:49 AM
Profile PM Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: Download counter
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 ???

This post was edited on 08-19-2005 at 11:01 AM by John Anderton.
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
08-19-2005 10:51 AM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Download counter
<?
$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
08-19-2005 11:19 AM
Profile PM Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
O.P. RE: Download counter
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

This post was edited on 08-19-2005 at 11:27 AM by John Anderton.
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
08-19-2005 11:25 AM
Profile E-Mail PM Web Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Download counter
lee jeffery made me one using a database however you cannot display the stats to the user :(
08-20-2005 09:14 PM
Profile PM Find Quote Report
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: Download counter
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-)
08-20-2005 09:19 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Download counter
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
08-20-2005 09:24 PM
Profile PM Find Quote Report
Tasha
Senior Member
****

Avatar

Posts: 717
Reputation: 81
31 / Female / Flag
Joined: Jan 2005
RE: Download counter
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:
www.mycutelobster.co.uk
"Of course it is happening inside your head, Harry,
but why on earth should that mean that it is not real?"
08-20-2005 10:35 PM
Profile PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On