You can write the Common Gateway Interface program (otherwise called CGI) in any computer language that can send text to a standard output channel (i.e., almost every one):
#include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { printf("Content-type: text/html\n\n"); printf("<pre>Hello, World!</pre>\n"); return EXIT_SUCCESS; }
[html, body, etc. tags omitted for brevity].
source share