Author |
Message |
08/08/2003 11:53:53
|
Anonymous
|
Hello,
I have just uploaded the download counter script, it is exactly what I was looking for.
It will not find any files in the base directory though, have I set it up wrong? I wasn't sure what to put
the script is at www.holystonemill.co.uk/cgi-bin/downloader/download.pl
the directory to scan is www.holystonemill.co.uk/downloadnet
Thanks
|
|
09/08/2003 09:40:23
|
Mark_Magill
Newbie
Joined: 02/08/2003 04:23:21
Messages: 1
Location: Coos Bay, Oregon USA
Offline
|
andrew wrote:Hello,
I have just uploaded the download counter script, it is exactly what I was looking for.
It will not find any files in the base directory though, have I set it up wrong? I wasn't sure what to put
the script is at www.holystonemill.co.uk/cgi-bin/downloader/download.pl
the directory to scan is www.holystonemill.co.uk/downloadnet
Thanks
Mine found the files easily enough, remember to put the path from the document root - if you're hosted by someone (I'm on PowWeb.com) for example, my path is www/w/wordforlife/htdocs-- and so on. This is "invisible" to the outside world, but important to Perl scripts
Put this tiny script into your CGI-BIN directory, CHMOD to 755 and execute it to find your document root:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Document Root is: ";
print $ENV{'DOCUMENT_ROOT'};
This also solved my probems getting Advanced Guestbook and FFA Links scripts running that I got from here.
I have another problem, though, in that I just can't seem to figure out how to put the counter into use. The instructions say,
"To count a download use: <a href="download.pl?file=file_id">file</a>
Would somone PLEASE tell me what to put there to download a file called worry.zip located at (here's the full path) www.wordforlife.com/files/public/mp3/sermons/worry.zip
Or do I have to use the administration utility to assign them file ID's?
Please give an elementary reply, I'm just getting started wtih Perl scripts, but have a strong background in files, paths, relative paths and so on.
Thanks -
Mark
|
Mark R. Magill
Word For Life Christian Resources -www.wordforlife.com
Free! MP3 Sermons, download or free CD. |
|
06/06/2004 22:43:09
|
trekker9876
Beginner
Joined: 05/06/2004 04:20:41
Messages: 23
Offline
|
Mark_Magill wrote:
I have another problem, though, in that I just can't seem to figure out how to put the counter into use. The instructions say,
"To count a download use: <a href="download.pl?file=file_id">file</a>
Would somone PLEASE tell me what to put there to download a file called worry.zip located at (here's the full path) www.wordforlife.com/files/public/mp3/sermons/worry.zip
Or do I have to use the administration utility to assign them file ID's?
you have to use the control panel to create the file id's
I am currently using a similar script which works VERY well but you have to add each file in, I was hoping this script would find them all for me!!
|
|
06/06/2004 23:07:25
|
Anonymous
|
trekker9876 wrote:
you have to use the control panel to create the file id's
I am currently using a similar script which works VERY well but you have to add each file in, I was hoping this script would find them all for me!!
Hey there, I'd forgotten this old thread (its been about a year) I finally gave up on the counter and went to HTMLfixIT.com and got their counter. Easy to use and I didn't have to enter all the files into the list.
Thanks for the help anyway -- nice to see someone finally answered!
Mark
|
|
06/06/2004 23:38:04
|
trekker9876
Beginner
Joined: 05/06/2004 04:20:41
Messages: 23
Offline
|
Anonymous wrote:
trekker9876 wrote:
you have to use the control panel to create the file id's
I am currently using a similar script which works VERY well but you have to add each file in, I was hoping this script would find them all for me!!
Hey there, I'd forgotten this old thread (its been about a year) I finally gave up on the counter and went to HTMLfixIT.com and got their counter. Easy to use and I didn't have to enter all the files into the list.
Thanks for the help anyway -- nice to see someone finally answered!
Mark
thanks, I went to that site and have their downloader so I will check it out.
Jeff
|
|
|