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

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







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

Reply
 
Thread Tools Display Modes
  #41  
Old August 14th, 2003, 06:43 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?

There was one space character infront of &#060?php
that messed all up, now I'm getting somewhere

The only remaining problem is taht it wants to add the extension .php to the file, so the suggested filename in the download dialogue is NGC3_57.zip.php

Hmm, how to remove that??

I had to change the Content-Type header to x-zip-compressed and now it works great.

[ August 14, 2003, 05:57: Message edited by: Ruatha ]
Reply With Quote
  #42  
Old August 14th, 2003, 06:51 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?

Quote:
If the headers aren't needed, how to make the browser download the file without the need of clicking any link??
Oh, I didn't realize that is what you wanted it to do. I have no idea how to do that.
__________________
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
  #43  
Old August 14th, 2003, 06:54 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?

This looks like you are cutting off the file extension, and I see no line to add a new one:

$fname = basename($file);

So that might cause problems.
__________________
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
  #44  
Old August 14th, 2003, 07:01 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?

Nope, now all is working, it was the content type.
Thanx for the help, I chose your way to find the file instead of mine as if I use yours I can just copy new files into the directory and leave the old ones, but with mine I had to delete the old ones.
So:
http://ruatha.homelinux.org

press "Get latest game turn file" for the script, and here is the script finished:

http://ruatha.homelinux.org/upload.txt

I removed the line
$fname = basename($file);
as it had not use, just a reminder of something previously tested.

[ August 14, 2003, 06:57: Message edited by: Ruatha ]
Reply With Quote
  #45  
Old August 14th, 2003, 07:03 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?

Cool. Glad I could help.
__________________
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
  #46  
Old August 14th, 2003, 10:58 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?

Ahh, this PHP is fun, now I've made it more PBW like with players upload status on the first page.

Thanx for starting me on PHP!

[ August 14, 2003, 10:07: Message edited by: Ruatha ]
Reply With Quote
  #47  
Old August 14th, 2003, 11:53 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?

Another question, I added a timer counting down to the deadline, does the TIME() get's the time from my server or from the clients computer?

Now I've changed all old CGI scripts to PHP scripts, much better!

[ August 14, 2003, 12:40: Message edited by: Ruatha ]
Reply With Quote
  #48  
Old August 14th, 2003, 05:36 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?

http://us2.php.net/manual/en/ref.datetime.php

has all the differnt time functions.
__________________
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
  #49  
Old August 14th, 2003, 07:05 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?

Thanks, but I don't find the answer myself to my question there. I guess it's the servertime.
Reply With Quote
  #50  
Old August 15th, 2003, 09:28 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?

Now that I see how much easier PHP is than CGI that I used to use I start wondering about ASP, is that good?
there seems to be some things that can't be done in PHP that can be done in ASP.

Perhaps I'll check that and transform the site to ASP instead of PHP (instead of Perl/CGI), or what about Java/Javabeans and VB scripts, are those only clientbased?

I think I'll start by looking into ASP some.

BTW the site files can be found here:
http://www.shrapnelgames.com/cgi-bin...;f=23;t=009759
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 04:59 PM.


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