CGI Hello World Example Here are a few example Hello World CGI (Common Gateway Interface) applications written in different languages. Please make sure your webserver config has cgi properly set up first. For example, boa needs to have AddType application/x-httpd-cgi cgi enabled in boa.conf. Finally, make sure the files are marked with executable permissions on the server. Shell Code Example #!/bin/sh echo "Content-type: text/html" echo "" echo "" echo "CGI example" string="Hello world!" cat << EOF $string EOF echo "" C Code Example #include int main(int argc, char *argv[]) { printf("Content-type: text/html\r\n"); printf("\r\n"); printf( "" "CGI example" "Hello world!" "" ); }