|
|
|
 |

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 14th, 2003, 01:56 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Why not just rename the file to "NGC3_Latest.zip" ?
__________________
Things you want:
|

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 ]
|
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
|
|
|
|
|