English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi Every one is there some1 out there who can Explain to me Clearly how to make a Cgi file and show an example of how to make it Using C++ i have heard about it but can seem to understand any of it plzzzzzzz help ill give you a web hosting gift also to the person who can teach me

2006-10-09 09:27:50 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

Ok as I assume that you know C and C++ maybe this could help you:

http://www.cs.tut.fi/~jkorpela/forms/cgic.html

2006-10-09 09:31:08 · answer #1 · answered by Anonymous · 0 0

I can't tell you how to do it in C++, but the basics of CGI programming are the same regardless of what language you use.

CGI defines three standard file handles, STDIN, STDOUT, and STDERR. The usual flow is that an HTML form calls your program using the "post" method. You can read the length of the posted data from the CONTENT_LENGTH environment variable, and read the data itself from STDIN. Alternatively, data sent using "put" can be read from the QUERY_STRING variable. After processing, you print out HTML content to STDOUT, and the server delivers it to the user's browser.

CGI uses a number of environment variables to make information available to your program; see a list at http://hoohoo.ncsa.uiuc.edu/cgi/env.html.

How you install the program depends on the web server; often it has to go into a designated directory.

2006-10-09 16:47:33 · answer #2 · answered by injanier 7 · 0 0

I don't think it's possible and if it is, you would need a special parser for the CGI to make it work.

Most Common Gateway Interface scripts use: Perl, Python, Ruby or another obscure and rarely used language.

It may be possible to use C++ but I don't think there are many people that would these days.

Your best bet would be to search google.

J

2006-10-09 16:31:57 · answer #3 · answered by J 3 · 0 0

fedest.com, questions and answers