|
|
|
 |

August 14th, 2003, 04:19 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?
I'll install PHP and write me a script in that as it seems easier, good learning possibility 
|

August 14th, 2003, 04:35 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?
Well if you want to write it yourself, guess that leaves me off the hook.  But if you do want me to, just tell me specifically what you want the script to do.
|

August 14th, 2003, 05:25 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?
Quote:
Originally posted by Imperator Fyron:
Well if you want to write it yourself, guess that leaves me off the hook. But if you do want me to, just tell me specifically what you want the script to do.
|
Ok, I'll let you do the job and then see if I can understand how it works, here goes:
When pressing the link
<a href="gamefile"><img border=0 width=34 height=34
src="images/getturn.png">Get latest game turn file <br></a>
it should find the first file in the directory gamefile and initiate a download to the client of that file.
the href="gamefile" ofcourse can be substituted for whatever, it's the icon and text in the link that needs to be preserved.
gamefile is a subdirectory to the server directory which is d:\data\server
Doable?
PHP is installed now and seems to work ok.
[ August 14, 2003, 04:27: Message edited by: Ruatha ]
|

August 14th, 2003, 05:28 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?
What do you mean by "first file in the directory"? You can sort files in any order you want, so there isn't a first file. Do you mean the file containing the latest turn? That should be fairly easy, just a simple while loop testing each file to see if it has a larger number than the Last.
Also, how are the files named? Do you name them all the same way, but just with a different number in each filename?
[ August 14, 2003, 04:29: Message edited by: Imperator Fyron ]
|

August 14th, 2003, 05:36 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?
Hey.
PHP looks much easier than CGI, why didn't I check this out before?
|

August 14th, 2003, 05:44 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?
Dunno. Care to answer my question? 
|

August 14th, 2003, 05:51 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 have your script written, I just need to know what the file naming scheme is.
Actually, go here to see it in action:
http://www.spaceempires.net/ruatha/
There are 4 files in the folder:
ng1.zip
ng01.zip
ng12.zip
ng3.zip
You can d/l the script here:
http://www.spaceempires.net/ruatha/index.zip
You will need to set the appropriate path info and such, as commented in the script.
[ August 14, 2003, 04:53: Message edited by: Imperator Fyron ]
|
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
|
|
|
|
|