|Contrary to popular belief, it is possible to have a "script" |
written in C++, though I use the term "script" in the loosest
possible way. A script written in a "traditional" web language
such as perl is just a program that takes some input, or some
command-line parameters, and produces some HTTP/HTML
output which is then sent by the web server to the client
browser. There is nothing stopping this script from being a
fully compiled C++ program. But you don't embed it in a web
page, like you do with PHP scripts. You run it as a CGI script
by putting it in a special directory that the web server is
Alternatively, you can write C++/CLI (managed C++ producing
.NET assemblies) and embed it into an ASP.NET page.
In both cases, the subject is far from easy to explain and you
need to read a book on it.