You are here: Re: about CGI « HTML « IT news, forums, messages
Re: about CGI

Posted by Sherm Pendley on 08/16/07 17:15

joker <attackack@yahoo.com> writes:

> I don't know Perl to build a CGI script but I know C++.

That's OK - CGI is just an interface between the web server and a child
process. It concerns specific environment variables, and what kind of data
the child process must understand and produce on its standard input and
output streams.

Perl is popular for this purpose because of its robust string handling,
which makes it a good fit for working with the text-based data formats that
are very common on the web. But the CGI spec itself is language-agnostic.
Any language, whether compiled or interpreted, can be used to write a CGI.

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

It doesn't even need to be an HTML page. A CGI can produce any type of output
using any means the author wants, whether that is reading HTML from a file
and print it, or generating a graph and returning it as GIF image data.

You can find links to information regarding the CGI "standard" - a de facto
standard, which hasn't been formalized as an RFC - at the W3C site:

<http://www.w3.org/CGI/>

One popular library of CGI functions is LibCGI. It's plain C functions, not
C++ classes, but they're callable from C++:

<http://libcgi.sourceforge.net/>

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация