|
|
|
 |

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