Advertisement

cgi-bin.....

Started by May 26, 2000 06:40 AM
7 comments, last by Arkon 24 years, 7 months ago
hi what''s up? well could you please suggest me a host that supports cgi-bin free host... thanks
Why not try Tripod.com they have a good cgi-bin.

Edited by - Jono on May 26, 2000 7:46:19 AM
Advertisement
Can anyone tell me how to make CGI scripts, or whatever there called? Are they compiled code, or are they like HTML, with the pure ASCII stuff? I know they are sometimes programmed in PERL, but I am not about to learn that, and I also heard you can program this stuff in C. What gives? SHOW ME THE INFO!!! (Not funny? sorry)

Dare wa neko o koroshiteimasuka? (Ha! Learn Nihongo!)

Edited by - Sponge99 on May 26, 2000 8:30:39 AM
"Now watch as I run away in a womanly fashion." - Batman
Some time ago I programmed CGI for unix in C.

Just use the stdin to read data from the host, or use environment variables.
To answer the host, just send back a HTML page via stdout.

If you're just starting, maybe best to write a simple C program and send back all your environment variables in a HTML page.

Send back a HTML page:
printf("Content-Type: text/html\n\n");
printf("&ltHTML>&ltTITLE>...&ltBODY>...");



Edited by - baskuenen on May 26, 2000 7:37:33 PM
CGI scripts are made in a language called Perl or you could use C but Perl is better for web development. Perl is a scripting language that runs on an interpreter. Perl currntly is on version 5.0. Been that for years now. It doesn''t require a compiler. Making perl scripts in notepad is great however Perlbuilder is good. Should you pick up Perl? accroding to a article I read web development is going to go up 117% in the next 8 years. Currently a self-taught webmaster can make 80k a year. No I do not know how to make CGI scripts but that article stating its going to go up 117% really caught my eye. It just might end up being a webmaster and developing CGI scripts.
I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work
you may want to look into java servlets. I prefer them over cgi stuff, but your going to be hard-pressed to find a (free) server to let you run them...

java.sun.com

ratman
Advertisement
Forgot the origanal topic.
For free cgi-hosting I recommend virtualave.net I recomend this because you have access to the folder before your public html directory where a lot of configuration files for your cgi scripts should go so people can not edit them. Most free and even we servers that you pay for by the month do not have this feature. It is a very important feature if you really are serious about cgi. There are two choices. You can pay the 70 dollars to have www.yourname.com or http://yourname.virtualave.net for free.
I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work
quote: Original post by Sponge99

Are they compiled code, or are they like HTML, with the pure ASCII stuff?


Perl, in my oppinun, is a brilliant language (biased alert - its part of my job and its my best language) its scripted, and is in ASCII. If its an NT server running IIS 4 you could try using Active Server Pages instead.

quote:
I know they are sometimes programmed in PERL, but I am not about to learn that, and I also heard you can program this stuff in C.


Why not??? I''m offended! You could also look into PHP3 - that''s basically C for the web.

/home/./~jumble
---------------
jumble-----------
Hiya...

Well, far be it for me to get into an argument about which language is better for what (I use C for my CGI stuff, but thats cos I know it), but here is a link to a very helpful site on CGI.

http://cgi.resourceindex.com/Documentation/

--== Rapier ==--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Save the whales, feed the hungry, free the mallocs!
--== Rapier ==--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Save the whales, feed the hungry, free the mallocs!

This topic is closed to new replies.

Advertisement