.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT: Look what I can do... (http://forum.shrapnelgames.com/showthread.php?t=23581)

Gandalf Parker April 22nd, 2005 05:17 PM

Re: OT: Look what I can do...
 
Quote:

Instar said:
Quote:

Gandalf Parker said:
Since we are on this subject.....

I would be interested in a CGI which is the simplest possible for UPLOADING a file to a linux webserver. Such as, if I click it then it goes the full path to "C://program files/Space Empires IV/mygame/myturn.fil" and uploads it. No questions, no options, no checks and verifications.

Perl is what you want for CGI. PHP is better though, IMO.

I wouldnt care if it were written in Basic. In this case my definition of "better" would be simplest. Kindof like a game my programmers used to play called "I can do that in # lines of code".

Instar April 22nd, 2005 09:28 PM

Re: OT: Look what I can do...
 
Quote:

Gandalf Parker said:
Quote:

Instar said:
Quote:

Gandalf Parker said:
Since we are on this subject.....

I would be interested in a CGI which is the simplest possible for UPLOADING a file to a linux webserver. Such as, if I click it then it goes the full path to "C://program files/Space Empires IV/mygame/myturn.fil" and uploads it. No questions, no options, no checks and verifications.

Perl is what you want for CGI. PHP is better though, IMO.

I wouldnt care if it were written in Basic. In this case my definition of "better" would be simplest. Kindof like a game my programmers used to play called "I can do that in # lines of code".

Well, do you want to learn how to do it yourself, or do you want a freebie or something? I think there are some free Perl cgi scripts...

Gandalf Parker April 22nd, 2005 09:44 PM

Re: OT: Look what I can do...
 
No on the learning. Ive got a ton of books and help sites on that. I just want something that I click and it sends
"D:\Program Files\Space Empires IV Gold\Empires\mine.emp". No questions, no choices. If its simple enough then it will serve my purpose of being able to modify it on the fly.

I thought there might be someone here who writes their own CGI's. If not then no problem, I can keep asking around.

Instar April 23rd, 2005 01:59 AM

Re: OT: Look what I can do...
 
What kind of webserver you running? I assume some kind of Apache, right?

Gandalf Parker April 23rd, 2005 09:42 AM

Re: OT: Look what I can do...
 
Quote:

Instar said:
What kind of webserver you running? I assume some kind of Apache, right?

Debian Linux, Apache. Dedicated, full root so anything can be added if its not already there for this.

Im half trying to move toward handling some PbEM games from the SysAdmin upward side of it rather than the WebMaster downward side usually used. The one stumbling block that I keep meaning to work on and never do, is an upload routine. Simple, single file going to a single location, no options. If someone can do that, great. If not then I will put it back on the back-burner till I get around to it.

Instar April 24th, 2005 02:47 AM

Re: OT: Look what I can do...
 
Quote:

Gandalf Parker said:
Quote:

Instar said:
What kind of webserver you running? I assume some kind of Apache, right?

Debian Linux, Apache. Dedicated, full root so anything can be added if its not already there for this.

Im half trying to move toward handling some PbEM games from the SysAdmin upward side of it rather than the WebMaster downward side usually used. The one stumbling block that I keep meaning to work on and never do, is an upload routine. Simple, single file going to a single location, no options. If someone can do that, great. If not then I will put it back on the back-burner till I get around to it.

No promises, but I'll look into it. I'm pretty busy with work and the beta, but it should be really easy.

Instar April 24th, 2005 03:04 AM

Re: OT: Look what I can do...
 
http://cgi-lib.berkeley.edu/ex/fup.html
Something like the above? It looks to be a fairly common Perl lib that takes a HTTP POST from the HTML form.

Gandalf Parker April 24th, 2005 10:25 AM

Re: OT: Look what I can do...
 
Quote:

Instar said:
http://cgi-lib.berkeley.edu/ex/fup.html
Something like the above? It looks to be a fairly common Perl lib that takes a HTTP POST from the HTML form.

No. Thats the kindof thing I found plenty of in google. But thanks. I can add it to my list of "maybe this one stipped down if I ever get time and motivation for it".

Gandalf Parker

Instar April 26th, 2005 01:56 AM

Re: OT: Look what I can do...
 
Well, I don't understand what you want then. You want a webpage you visit to automatically upload a file from the user's computer? That just isn't very possible with standard Perl/PHP/HTML stuff. You can create a default value for the HTML input, if that is what you mean.

narf poit chez BOOM April 26th, 2005 02:11 AM

Re: OT: Look what I can do...
 
I think he wants a script that will upload a file in a specific location on his computer to a specific location on his webpage, so that if he wants to upload something different, all he has to do is change the addressing.


All times are GMT -4. The time now is 05:53 AM.

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