|
|
|
 |
|

August 13th, 2003, 10:16 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
OT:Is this the right forum for HTML help?
I need the ability on my site to let the user download a file by pressing a button.
That is no problem, but the file is a zip file that changes name each turn, i e NGC3_57.zip, NGC3_58.zip" etc.
I don't want to change the HTML code each turn, I just want to put the file in the right directory and remove the old one, then when you press the icon to download, it will choose the only file in that directory.
I can't see anyway to get wildcards in a HTML link, and I haven't found any good CGI script for it (Don't script myself).
Any ideas?
And I'd also like a way to make a list of all files in a directory on a HTML page with other contents, not a simple link to the directory. This list must also be dynamicly changed when the contents change. It's to let you see through the web page who has uploaded their turns, but not to download the files.
Suggestions??
(I only use Perl CGI, no java or ASP or other fancy stuff)
[ August 13, 2003, 10:12: Message edited by: Ruatha ]
|

August 13th, 2003, 10:46 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT:Is this the right forum for HTML help?
far as i can tell, this is sort of a general forum, as long as it doesn't get to general.
i wonder if that'll make sense tommorrow.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

August 13th, 2003, 11:13 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT:Is this the right forum for HTML help?
I could write you a PHP script in maybe 5 minutes if you want to use that (tomorrow though, as it is time for slumber now).  Don't know any PERL/CGI though.
|

August 13th, 2003, 11:23 AM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
What would be needed for my server to run a PHP script? (Will look it up now)
Thanks for the offer.
|

August 13th, 2003, 02:10 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
It's the easy way out, but then it's harder for the one's downloading as it then wants to owerwrite the previous zipped turn.
They would also have to download it and unpack it to verify that it is indeed the latest turn and that I haven't messed up.
With the turn number in the file name it's easier for both them and me to know that all is ok.
I'd prefer to keep it to PBW standards.
[ August 13, 2003, 13:12: Message edited by: Ruatha ]
|

August 13th, 2003, 02:27 PM
|
General
|
|
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
here is the article that explains it in php
http://www.devshed.com/Server_Side/P...ion/page1.html
http://newdev.com/ws/?downloading has a perl script called down ad which is a downloader
http://www.sitepoint.com/article/1156
article on how to write a perl script on downloadin files
perhaps the best way to do it is to set up a script to read the directory of contents ( only put that file in there) then pass this info over to your download part... as you now know the name. That way you do not have to rename the file every time
or do what sj said so you can download that file.
__________________
RRRRRRRRRRAAAAAGGGGGGGGGHHHHH
old avatar = http://www.shrapnelgames.com/cgi-bin...1051567998.jpg
Hey GUTB where did you go...???
He is still driving his mighty armada at 3 miles per month along the interstellar highway bypass and will be arriving shortly
|

August 13th, 2003, 02:28 PM
|
General
|
|
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
i guess if you read the directory of contents... then you can just let them download what ever...
__________________
RRRRRRRRRRAAAAAGGGGGGGGGHHHHH
old avatar = http://www.shrapnelgames.com/cgi-bin...1051567998.jpg
Hey GUTB where did you go...???
He is still driving his mighty armada at 3 miles per month along the interstellar highway bypass and will be arriving shortly
|

August 13th, 2003, 03:03 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
I have been pointing to the directory so far but I don't think that's a "nice" solution.
Will check the links.
The "down ad" wants a fixed filename I belive...
Will check how to do it myself then,
thanx
[ August 13, 2003, 14:09: Message edited by: Ruatha ]
|

August 13th, 2003, 03:16 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Darned again.
The do it yourself works for me, but you have a fixed filename....
http://ruatha.homelinux.org/test.htm
[ August 13, 2003, 14:32: Message edited by: Ruatha ]
|

August 13th, 2003, 03:29 PM
|
Major
|
|
Join Date: Nov 2000
Location: Biddeford, ME, USA
Posts: 1,007
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
It's too bad you can't use ASP. I have a script that lists contents of any folder / file. You can sort, hide certain extensions, etc. I use it VERY frequently in our Intranet for issues just such as yours....
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|