.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 13th, 2003, 10:16 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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 ]
Reply With Quote
  #2  
Old August 13th, 2003, 10:46 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default 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.
Reply With Quote
  #3  
Old August 13th, 2003, 11:13 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default 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.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old August 13th, 2003, 11:23 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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.
Reply With Quote
  #5  
Old August 13th, 2003, 02:10 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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 ]
Reply With Quote
  #6  
Old August 13th, 2003, 02:27 PM

tesco samoa tesco samoa is offline
General
 
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
tesco samoa is on a distinguished road
Default 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
Reply With Quote
  #7  
Old August 13th, 2003, 02:28 PM

tesco samoa tesco samoa is offline
General
 
Join Date: Jul 2001
Location: Canada
Posts: 4,603
Thanks: 0
Thanked 0 Times in 0 Posts
tesco samoa is on a distinguished road
Default 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
Reply With Quote
  #8  
Old August 13th, 2003, 03:03 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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 ]
Reply With Quote
  #9  
Old August 13th, 2003, 03:16 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default 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 ]
Reply With Quote
  #10  
Old August 13th, 2003, 03:29 PM

rdouglass rdouglass is offline
Major
 
Join Date: Nov 2000
Location: Biddeford, ME, USA
Posts: 1,007
Thanks: 0
Thanked 0 Times in 0 Posts
rdouglass is on a distinguished road
Default 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....
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.