PDA

View Full Version : Cgi



Marius24
02-07-2004, 07:52 PM
what is cgi (is it a language)

and where can i get tutorials on how to learn to use it? :unsure:

ultimatejester
02-07-2004, 08:09 PM
A set of rules that describe how a Web Server communicates with another piece of software on the same machine, and how the other piece of software (the 'CGI program') talks to the web server. Any piece of software can be a CGI program if it handles input and output according to the CGI standard. Usually a CGI program is a small program that takes data from a web server and does something with it, like putting the content of a form into an e-mail message, or turning the data into a database query. CGI "scripts" are just scripts which use CGI. CGI is often confused with Perl, which is a programming language, while CGI is an interface to the server from a particular program. Perl is an application of CGI, as well as MIVA, Python, PHP3, and other scripting languages.

You can find tutorials on Google. ;)

4play
02-07-2004, 08:54 PM
common gateway interface.

http://www.cgi101.com/ pretty neat site to learn how to use perl to make cgi scripts.

shn
02-07-2004, 09:03 PM
Cgi is full of flaws so just be careful.

CoolMac
02-07-2004, 09:41 PM
you can always find scripts here (http://www.hotscripts..com) or google them

Marius24
02-07-2004, 09:42 PM
Originally posted by shn@7 February 2004 - 20:03
Cgi is full of flaws so just be careful.
what would u recommend instead?

shn
02-07-2004, 10:24 PM
Cgi is fine if its what "you" want to try. Lots of sites use cgi. However, you need to make sure you secure your site because a lot of web scanners are composed of more cgi exploits than anything else.

Marius24
02-07-2004, 11:30 PM
Originally posted by shn@7 February 2004 - 21:24
Cgi is fine if its what "you" want to try.  Lots of sites use cgi.  However, you need to make sure you secure your site because a lot of web scanners are composed of more cgi exploits than anything else.
i was hoping to be doing a small project on something like ebay (same principle) and noticed they use cgi so thought that would be best

shn
02-07-2004, 11:54 PM
Yes it would be best for something of that nature :)

h1
02-08-2004, 01:12 AM
Well, if you're that good at C/Perl, you can always make your scripts bulletproof. :D

shn
02-08-2004, 01:52 AM
Originally posted by haxor41789@7 February 2004 - 19:12
Well, if you're that good at C/Perl, you can always make your scripts bulletproof. :D
Perlmonger :angry:

:P

Robert00000
02-08-2004, 01:53 AM
Originally posted by Marius24+7 February 2004 - 23:30--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (Marius24 @ 7 February 2004 - 23:30)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-shn@7 February 2004 - 21:24
Cgi is fine if its what "you" want to try. Lots of sites use cgi. However, you need to make sure you secure your site because a lot of web scanners are composed of more cgi exploits than anything else.
i was hoping to be doing a small project on something like ebay (same principle) and noticed they use cgi so thought that would be best [/b][/quote]
You could use ASP, but would need a windows server.

I have used CGI scripts (in perl) for form processing and it works great. There are some security issues i&#39;ll have to address in the next few days before the biz can go live, but they are straight forward to solve.

h1
02-08-2004, 02:08 AM
How come no one has mentioned PHP?

And no SHN, I&#39;m not a Perlmonger. Just look at my title. :D

But with my function brain() not working, who knows?

Marius24
02-08-2004, 07:52 PM
maybe i will do this in asp. It looks easier and im abit short on time :helpsmile:

h1
02-09-2004, 12:23 AM
ASP sucks. Use PHP. It&#39;s much less complex and daunting, yet can match ASP for flexibility and power.