|
|
|
 |
|

August 14th, 2003, 06:43 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?
There was one space character infront of <?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 ]
|

August 14th, 2003, 06: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?
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.
|

August 14th, 2003, 06:54 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?
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. 
|

August 14th, 2003, 07:01 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?
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 ]
|

August 14th, 2003, 07:03 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?
Cool.  Glad I could help.
|

August 14th, 2003, 10:58 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?
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 ]
|

August 14th, 2003, 11:53 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?
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 ]
|

August 14th, 2003, 05:36 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?
__________________
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 14th, 2003, 07:05 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?
Thanks, but I don't find the answer myself to my question there. I guess it's the servertime.
|

August 15th, 2003, 09:28 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?
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
|
Thread Tools |
|
Display Modes |
Linear Mode
|
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
|
|
|
|
|