Log in

View Full Version : OT: Look what I can do...


geoschmo
April 20th, 2005, 12:30 PM
My first C++ program.

Yay me. http://forum.shrapnelgames.com/images/smilies/laugh.gif

<font class="small">Code:</font><hr /><pre> //************************************************** *******
//* *
//* CIS 233.01 Program Lab 1: Chapter 3, Ex 4 (Pg 143) *
//* Written by: George Perley *
//* Date: April 18, 2005 *
//* *
//************************************************** *******

#include &lt;iostream&gt; // Must include for cin and cout
#include &lt;fstream&gt; // Must include for file input and output functions
#include &lt;iomanip&gt; // Must include for setw , fixed and setprecision functions
using namespace std; // This is so the program knows how to use cin and cout

int main() // Start of main function
{

const double taxableAmountRate = .92; // Set constant for amount of assesed value that is taxable
const double taxRate = 1.05; // Set constant for tax per $100 of taxable value

double assesedValue; // declare variable for assesed value of property
double taxableAmount; // declare variable for caluclated taxable value of property
double propertyTax; // declare variable for calculated property tax amount

ofstream fout; // declare file output command

fout.open("Lab1OutputFile.txt"); // open text file

cout &lt;&lt; "Please enter the assesed value of the property: "; // Prompt user for assesed value
cin &gt;&gt; assesedValue; // Get assesed value input from user
cout &lt;&lt; endl; // carriage return before displaying results

taxableAmount = assesedValue * taxableAmountRate; // Calculate taxable portion of proprety value
propertyTax = (taxableAmount / 100) * taxRate; // Calculate property tax

cout &lt;&lt; setfill(' '); // set fill to blank spaces for formatting of output to screen
cout &lt;&lt; fixed &lt;&lt; showpoint &lt;&lt; setprecision(2); // desplay numbers on screen in two digit decimal notation.

cout &lt;&lt; left &lt;&lt; "Assessed Value: " &lt;&lt; setw(25) &lt;&lt; right &lt;&lt; assesedValue &lt;&lt; endl; // Screen output
cout &lt;&lt; left &lt;&lt; "Taxable Amount: " &lt;&lt; setw(25) &lt;&lt; right &lt;&lt; taxableAmount &lt;&lt; endl; // Screen output
cout &lt;&lt; left &lt;&lt; "Tax Rate for each $100.00: " &lt;&lt; setw(14) &lt;&lt; right &lt;&lt; taxRate &lt;&lt; endl; // Screen output
cout &lt;&lt; left &lt;&lt; "Property Tax: " &lt;&lt; setw(27) &lt;&lt; right &lt;&lt; propertyTax &lt;&lt; endl; // Screen output
cout &lt;&lt; endl;

fout &lt;&lt; setfill(' '); // set fill to blank spaces for formatting of output to file
fout &lt;&lt; fixed &lt;&lt; showpoint &lt;&lt; setprecision(2); // display numbers in file in two digit decimal notation.

fout &lt;&lt; left &lt;&lt; "Assessed Value: " &lt;&lt; setw(25) &lt;&lt; right &lt;&lt; assesedValue &lt;&lt; endl; // Write to file
fout &lt;&lt; left &lt;&lt; "Taxable Amount: " &lt;&lt; setw(25) &lt;&lt; right &lt;&lt; taxableAmount &lt;&lt; endl; // Write to file
fout &lt;&lt; left &lt;&lt; "Tax Rate for each $100.00: " &lt;&lt; setw(14) &lt;&lt; right &lt;&lt; taxRate &lt;&lt; endl; // Write to file
fout &lt;&lt; left &lt;&lt; "Property Tax: " &lt;&lt; setw(27) &lt;&lt; right &lt;&lt; propertyTax &lt;&lt; endl; // Write to file

fout.close(); // close file




} // This is the end of the main function, and my program
</pre><hr />

General Woundwort
April 20th, 2005, 12:39 PM
Interested in doing my Python homework? http://forum.shrapnelgames.com/images/smilies/wink.gif

DarkHorse
April 20th, 2005, 01:09 PM
That can't be right. I don't see "hello world" anywhere in that code.

Fyron
April 20th, 2005, 01:16 PM
Yeah, that program is all wrong.

Combat Wombat
April 20th, 2005, 02:15 PM
I don't believe you can legally have a first C++ program without it including "Hello World". http://forum.shrapnelgames.com/images/smilies/laugh.gif

Aiken
April 20th, 2005, 02:45 PM
It only means that geo's really first programm was written in Basic.
But he will never admit it http://forum.shrapnelgames.com/images/smilies/wink.gif

AngleWyrm
April 20th, 2005, 03:38 PM
Yea? Look what I can do: C++ hat random container template library addition (http://home.comcast.net/~anglewyrm/hat.html)

boran_blok
April 20th, 2005, 03:41 PM
Lemme tell you, that is C http://forum.shrapnelgames.com/images/smilies/tongue.gif not C++ it might be C++ syntax but C++ implies OO programming. dunno if you guys see that.
having a single main aint a good sign http://forum.shrapnelgames.com/images/smilies/wink.gif

but if it's meant to be procedural it looks like a well structured program.

Fyron
April 20th, 2005, 03:42 PM
C++ is not strictly object oriented. It is well suited for procedural programming (more so than the ever so clunky C). http://forum.shrapnelgames.com/images/smilies/tongue.gif

geoschmo
April 20th, 2005, 04:03 PM
Aww you guys are tough. http://forum.shrapnelgames.com/images/smilies/happy.gif

Yeah we did the "Hello world" stuff in class. Everything up to this point was copying down code that the instructor did or doing the step by step stuff in the book. This one was the first one that I wrote on my own. All I had to work with was what the input and required output was supposed to look like.

And as far as it being C instead of C++, all I have to say to that is, even better. I'm bilingual! http://forum.shrapnelgames.com/images/smilies/laugh.gif

AngleWyrm
April 20th, 2005, 04:16 PM
Suggestion for version 2:
Separate input, output and processing into their own functions. It's real good exercise. Something like

main(){
get_input( variables )
process_input( variables )
put_output(screen)
put_output(file)
}

My brother never learned to use functions, and now he codes his entire programs all in main().
So now he can't write big programs, because after a while it becomes too much to follow in one function.
Try reading a 500-line function! One page is plenty.

NullAshton
April 20th, 2005, 06:40 PM
Nothing compared to my 500 or so lines of spagetti code written in qbasic.

Gandalf Parker
April 20th, 2005, 08:12 PM
aiken said:
It only means that geo's really first programm was written in Basic.
But he will never admit it http://forum.shrapnelgames.com/images/smilies/wink.gif



Most programmers started in Basic.
And most wont admit it. http://forum.shrapnelgames.com/images/smilies/happy.gif

CovertJaguar
April 20th, 2005, 09:56 PM
I don't believe "cout" or "cin" is in C, so it must be C++.

Will
April 20th, 2005, 10:16 PM
boran_blok said:
Lemme tell you, that is C http://forum.shrapnelgames.com/images/smilies/tongue.gif not C++ it might be C++ syntax but C++ implies OO programming. dunno if you guys see that.
having a single main aint a good sign http://forum.shrapnelgames.com/images/smilies/wink.gif

but if it's meant to be procedural it looks like a well structured program.


Ah, but there are objects. He clearly uses both the pre-defined cin and cout for standard input and standard output, respectively, and also uses the class ofstream for file output. Just because he hasn't created a class doesn't mean it's not OOP. I think Java has started to rot people's minds, making programmers think something is never OO unless you type "class foo" somewhere...

And I don't know about the rest of you, but I started in C, at 14 years old. A year later I learned "BASIC", but it was the version in my TI calculator, not this Visual nonsense. I technically still haven't "learned" VB, but really, do I need to? I can read the stuff, and if I'm ever asked to write it for some horrid reason... well, I'll burn that bridge when I get to it.

Slynky
April 20th, 2005, 10:17 PM
Gotta take my hat off to anyone who's got the initiative to learn a programminglanguage this "late in the game". http://forum.shrapnelgames.com/images/smilies/cool.gif

Suicide Junkie
April 20th, 2005, 11:15 PM
NullAshton said:
Nothing compared to my 500 or so lines of spagetti code written in qbasic.


Or my first serious program, which was almost a thousand lines of GW-Basic code.
All my variables were 4 or 5 character acronyms.
And it had no elses or block-ifs, since I didn't know about them at the time.
Instead, I used If-Dosomething-Goto http://forum.shrapnelgames.com/images/smilies/laugh.gif

I'd estimate that up to 10% of the instructions in that program were gotos!

But at least it was neat, well organized spaghetti code. http://forum.shrapnelgames.com/images/smilies/eek.gif

TurinTurambar
April 20th, 2005, 11:58 PM
Slynky said:
Gotta take my hat off to anyone who's got the initiative to learn a programminglanguage this "late in the game". http://forum.shrapnelgames.com/images/smilies/cool.gif



Amen brother.

Gandalf Parker
April 21st, 2005, 12:56 AM
Anyone who knows more than one language would be hard pressed to tell you to learn or not learn any particular programming language without afew more answers. In other words, dont bother learning VB unless and until you have a reason to. Something that you want to do, which it does well. Same goes for any other language. They all have their pros and cons

Kamog
April 21st, 2005, 01:25 AM
My first program was indeed a hello world program written in BASIC, on the Apple IIE. I was so happy and proud to be learning how to program a computer. That was a long long time ago. That year I went on to write spagetti code. In those days, each line of code had a line number and you had stuff like, "100 goto 250".

Then when I took my first programming course in university, on the first day the professor asked, "put up your hand if your first programming language was BASIC". I put up my hand, along with about half the people in the class. The professor says, "You are all contaminated - you learned to write spagetti code!". That course used Modula-2, and they were very strict about your code being neatly organized. That was a good thing, because I got rid of the bad habits I picked up earlier.

Strategia_In_Ultima
April 21st, 2005, 05:00 AM
What is spagetti code/a "Hello World" program?

Will
April 21st, 2005, 05:06 AM
Strategia_In_Ultima said:
What is spagetti code/a "Hello World" program?


Spaghetti code is exactly what it sounds like. It's stringy, messy, and gets all over the place. It's hard to pick it up, and you would in general just be better off cutting it into smaller pieces that are easier to deal with. So, like SJ's early program, full of GOTO statements, etc, instead of using "nice" loop structures, functions, and other things that make writing and reading programs easier.

"Hello World" is the traditional first program. All it does is output the text "Hello World" to standard output, then exits.

NullAshton
April 21st, 2005, 08:28 AM
The 500 or so lines of spagetti code was my first time creating a fairly good program. It was "Guess the Animal", kinda like twenty questions where the computer will ask you a question, and you answer it. It did very good, and would even learn from its mistakes http://forum.shrapnelgames.com/images/smilies/happy.gif I even implimented a save and load feature, complete with my own file type! And it had a nice blue background http://forum.shrapnelgames.com/images/smilies/biggrin.gif

David E. Gervais
April 21st, 2005, 09:15 AM
aaaahm so we are taking a walk down memory lane and sharing our 'First' Programming experience..

For me it was Atari Basic on the Atari 800 Computer. Aaah, the good old ways of line numbering and GOTO, GOSUB.. But the Atari let you place multiple commands on one line so you could cheat. http://forum.shrapnelgames.com/images/smilies/wink.gif

On the PC My first programming was with GW-Basic which came with the computer and I eventually graduated to Quick Basic 4.5 which allowed me to 'compile executables' allthough it was still an interpreted language when coding.

I'm still waiting for an 'Interpreted C language, I hate having to code, compile, run, code compile run,.. I miss the code, run, code, run, compile, share method.

nuf said, Cheers! http://forum.shrapnelgames.com/images/smilies/happy.gif

AngleWyrm
April 21st, 2005, 09:40 AM
For me it was a TRS-80 at Radio-Shack in Bellevue Square Mall. I read the book in the mall, and it had the traditional
10 PRINT "Hello, World!"
It also told of the GOTO statment, and I got to wondering what would happen if I made the program go back to the beginning. So I went back into Radio Shack, and wrote:

10 PRINT "Hello, World!"
20 GOTO 10

The screen filled to overflowing and would have run forever! They had to shut it down! I was hooked.

El_Phil
April 21st, 2005, 09:59 AM
http://www.playgroundlaw.com/cgi-bin/browse.pl?sid=2

For a detailed discussion on such issues

Fyron
April 21st, 2005, 11:35 AM
David E. Gervais said:
I'm still waiting for an 'Interpreted C language, I hate having to code, compile, run, code compile run,.. I miss the code, run, code, run, compile, share method.

Python (http://www.python.org) might be what you are looking for. It is loosely based off of C++ and is interpreted. Unfortunately it lacks all of the fancy syntax characters, but it is an attempt to get away from all of that and have a more "natural" programming language, with white space syntax instead of explicit funky characters.

Or, you could always use PHP (http://www.php.net). It is much closer to C++ (and C) stylistically and is of course interpreted. You would have to use it through a browser, but there is no reason why you could not do things locally with it. Run some sort of web server that is cut off from the rest of the world, and viola! http://forum.shrapnelgames.com/images/smilies/wink.gif

Gandalf Parker
April 21st, 2005, 12:12 PM
AngleWyrm_2 said:
For me it was a TRS-80 at Radio-Shack in Bellevue Square Mall. I read the book in the mall, and it had the traditional
10 PRINT "Hello, World!"
It also told of the GOTO statment, and I got to wondering what would happen if I made the program go back to the beginning. So I went back into Radio Shack, and wrote:

10 PRINT "Hello, World!"
20 GOTO 10

The screen filled to overflowing and would have run forever! They had to shut it down! I was hooked.



OK now is a good time for one of my favorite sigs. Heehee this is going to start some screams.

-- I try to avoid BASIC anymore since I saw the example of..(singing)
This is the code that never ends, it just goes on and on my friends.
Some people started GOTOing not knowing what it was
And now they keep GOTOing it forever just because
This is the code that never ends, it just goes on and on my friends.
(inspired by Lambchop's song..http://www.zutroy.com/stuff/neverend/)
HINT: you can get this song-virus out of your head by eating ice cream too fast.
Gandalf Parker

Evil_Duckie
April 21st, 2005, 01:03 PM
Gandalf Parker said:
Most programmers started in Basic.
And most wont admit it. http://forum.shrapnelgames.com/images/smilies/happy.gif



GW-Basic for me. But I won't admit to being a programmer http://forum.shrapnelgames.com/images/smilies/biggrin.gif Despite having used various Basic dialects, Pascal, Delphi, a little bit of C, PHP and one or two batch languages...

NullAshton
April 21st, 2005, 04:14 PM
POKE PROGRAM OF DOOM!

10 A = 1
20 POKE A, INT(RND * 256)
30 A = A + 1
40 GOTO 20

Run it, and watch the funky colors http://forum.shrapnelgames.com/images/smilies/happy.gif

I'm not responsible for any damages from this program though, so don't sue me!

Greybeard
April 21st, 2005, 06:35 PM
My first programming was in Fortran, on punch cards, run on a "room full" of computer at a college 15 miles away from my college. My college didn't have a computer, but we did have a card punch machine!

Those were the days. I think we did 6-8 programs in an entire semester.

narf poit chez BOOM
April 21st, 2005, 07:11 PM
Vic 20. I had one going once where there where two floors and you could climb up ladders and this thing would drop stuff on you.

Of course, Greybeard wins for oldest program...

NullAshton
April 21st, 2005, 07:40 PM
Anyone try my poke program of doom?

Gandalf Parker
April 21st, 2005, 11:29 PM
heehee I can still read punch cards. And I remember a "room full of computer" (one computer) that offered 32 bit programming as 32 toggle switches and an enter key.

Null, I did try your program (with a limit on the doom part). My basic didnt seem to like it. But then Im using a basic which I can use on both windows and linux so Im not surprised that it didnt want to do it.

Gandalf Parker

Instar
April 22nd, 2005, 12:29 AM
David E. Gervais said:
aaaahm so we are taking a walk down memory lane and sharing our 'First' Programming experience..

For me it was Atari Basic on the Atari 800 Computer. Aaah, the good old ways of line numbering and GOTO, GOSUB.. But the Atari let you place multiple commands on one line so you could cheat. http://forum.shrapnelgames.com/images/smilies/wink.gif

On the PC My first programming was with GW-Basic which came with the computer and I eventually graduated to Quick Basic 4.5 which allowed me to 'compile executables' allthough it was still an interpreted language when coding.

I'm still waiting for an 'Interpreted C language, I hate having to code, compile, run, code compile run,.. I miss the code, run, code, run, compile, share method.

nuf said, Cheers! http://forum.shrapnelgames.com/images/smilies/happy.gif


You want an interpreted C? Dude. That is soooo wrong.
Like Fyron said, try Python.

Will said:

boran_blok said:
Lemme tell you, that is C http://forum.shrapnelgames.com/images/smilies/tongue.gif not C++ it might be C++ syntax but C++ implies OO programming. dunno if you guys see that.
having a single main aint a good sign http://forum.shrapnelgames.com/images/smilies/wink.gif

but if it's meant to be procedural it looks like a well structured program.


Ah, but there are objects. He clearly uses both the pre-defined cin and cout for standard input and standard output, respectively, and also uses the class ofstream for file output. Just because he hasn't created a class doesn't mean it's not OOP. I think Java has started to rot people's minds, making programmers think something is never OO unless you type "class foo" somewhere...

And I don't know about the rest of you, but I started in C, at 14 years old. A year later I learned "BASIC", but it was the version in my TI calculator, not this Visual nonsense. I technically still haven't "learned" VB, but really, do I need to? I can read the stuff, and if I'm ever asked to write it for some horrid reason... well, I'll burn that bridge when I get to it.


Yeah, Will's right. Geo's program is at the very least object based.
Oh, and I think I was the one who told you to buy C for dummies (by Dan Gookin).

Just to put you all to shame, I know *all* of the following languages, each to varying amounts:
C/C++
C#
Java
J#
PHP (It can be compiled, PHP.NET)
Perl (it is more of a script though)
Java (J2SE, J2ME)
Fortran (77/95ish)
COBOL (old school hardcore!)
Intel IA32 Assembly
Visual Basic (.NET the best)
AppleBasic (Apple IIe baby!)
JavaScript (again, more of a script)
JCL (more of a script)
SQL (a query language, really)

Some of those I haven't used for a while, so I probably couldn't make a super huge program in each. You have to be using it to know it well. Right now, I'm deep into the internals of Java on the J2ME platform.
I plan on learning 64 bit assembly when I get a 64 bit computer. I hope to get Python learned sometime soon, and maybe some Ruby, Ada, or maybe Eiffel. Smalltalk would be nice too. D would be relatively easy to learn, so maybe I'll try that. Oh, and Visual Foxpro, and some Delphi would be nice too.
Yes, I'm a pitiful geek. But a well learned one!

Captain Kwok
April 22nd, 2005, 12:49 AM
I used to make all sorts of variations of my Random Hockey Madness / Random Baseball Madness simulators - first in a language called Turing, then to various degrees in good ol' basic, qbasic, and lastly visual basic. The programs were fun, but unfortunately lost in that HD crash a couple of years ago. I never got back into programming after that.

dogscoff
April 22nd, 2005, 06:10 AM
I used to spend hours writing spaghetti code in AMOS- a bulky but easy version of Basic for my old Amiga. I was entirely self-taught, but I taught myself to use procedures/ functions rather than GOTOs (although I never understood how or why I should pass a parameter to a procedure).

I used to produce some really cool scrolltexts and joystick-driven animated menus for compilations of (other people's) games, with lots of neat home-pixelled graphics/ fonts with brilliant dance music by a friend of mine, who used Fasttracker or Octamed or something similar. It was spaghetti code, it was all entirely unplanned (I always had a vision of how I wanted it to look, but never knew how to plan code- just started typing) but it all worked. Some of it was fairly sophisticated, too. I remember I had one scrolltext that went from the bottom of the screen to the top, casting a shadow-text beneath moving at a third the speed. All the while I had a 2-player "Tron" game running on the other half of the screen.

Then I got a girlfriend.


I'd love to look back over those programs. Unfortunately all the data is on floppy, and PCs won't read amiga floppies, even with emulators.

Gandalf Parker
April 22nd, 2005, 02:21 PM
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.

Instar
April 22nd, 2005, 02:26 PM
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.

NullAshton
April 22nd, 2005, 02:40 PM
For you people who are curious, here's my QBasic program. It should be fairly easy to figure out what to do http://forum.shrapnelgames.com/images/smilies/happy.gif

Gandalf Parker
April 22nd, 2005, 05:17 PM
Instar said:

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
Gandalf Parker said:

Instar said:

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
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
What kind of webserver you running? I assume some kind of Apache, right?

Gandalf Parker
April 23rd, 2005, 09:42 AM
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
Gandalf Parker said:

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

Gandalf Parker
April 26th, 2005, 09:58 AM
narf poit chez BOOM said:
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.



Pretty close. What I want is the simplest version of those scripts with everything already filled in. Hard coded. No options. A "one liner" (probably more like 5 lines). No choices. click and it uploads.

But thats ok. I was asking in the wrong place and I didnt mean to hijack the thread. My goal was webhosting a game with a "sysadmin upward" model instead of the "webmaster downward" model because for me the SysAdmin model is much simpler. Asking in web and cgi groups had gotten me nowhere. Asking in sysadmin groups seems to be working better (duh! *slaps self on forehead*)