C++ with CGI

Before doing example, You have to configure cgi-bin with apache server. If its done then try your first example. Open an empty file and write following c++ code. #include <iostream> using namespace std; int main () { cout << "Content-type:text/html \n\n"; cout << "Hello World – First CGI Program"; return 0; } Now save this […]