|
Posted by J.O. Aho on 08/16/07 17:08
joker wrote:
> I don't know Perl to build a CGI script but I know C++. I need to
> know how the server use a "file.exe" and the html page from the client
> browser. In C++ the data I need to consider is stored in arrays or
> variables. The html page inside the server how is stored? How a
> CGI .exe can find that data?
You will have a cgi directory on your server (you may to configure that
yourself), this is where you place cgi scripts and binaries.
The cgi has to generate the data that is sent to the user, this includes even
the mime type header (if you forget this, your cgi will not work).
If I remember it right (it's like 7 years ago), the incoming data is read from
the $arg array in main(). Data you store within the program is all up to you.
Here is a good place for you start looking for more information:
http://www.google.com/search?q=write+cgi+c%2B%2B&sa=Google+Search&filter=0
--
//Aho
Navigation:
[Reply to this message]
|