Ivan Vecerina wrote:
"Robert" <gr*****@REMOVEhotmail.com> wrote in message
news:MO****************@bignews1.bellsouth.net... I was wondering if there was any web server which supported the use of
c++ as a server side method for creating dynamic web pages. Is this
viable, or should I just bite the bullet and learn a server-side
scripting language like php?
I would strongly suggest giving PHP a shot - you'll see its easy to
set-up, well supported, and takes little work to fulfill basic needs.
Of course web applications can be written in C++,
but it would be very much like hammering a screw.
That all depends. PHP is great and I use it for web developement, but it
can be very slow if you have some intensive work for it to do, like
search a bunch of files. Something that compiles to machine code, like C
or C++ can be very useful in the right application. It's worthwhile
knowing how to do both.
In answer to the OP's question, CGI only requires that programs be able
to access environment variables, read from standard in and write to
standard out. C++ can do all of these. As others mentioned, there are
prefab libraries out there to help out. Search for: C++ cgi
Brian Rodenborn