C++ On Websites?

software development


I just want to ask if it is possible to use C++ on a website. Just out of curiosity.


Yes, but it has to be a cgi or fastcgi program. If you were thinking of doing that, you can build your site just like you would with perl or php, but you just have the added step of compiling the source code you upload to the server from a shell prompt on the server. (Don’t compile it on your local computer and upload to your site; the executable might not be compatible with the web server’s unix environment.)

You can’t build your own standalone web server process; whatever you build has to run under the shared apache web server configuration.