I am new to cgi and am having trouble with example programs. All the basic examples that I have come across use a simple printf to display the output.
void main ()
{
printf("Content-type: text/html\n\n"
printf("<HTML><HEAD><TITLE>Hello!</TITLE></HEAD>\n"
printf("<BODY><H1>Hello, World!</H></BODY></HTML>\n"
}
this wont work on my rig. I have a test example working that I got from This example works but its going to take me a while to go through the code and find what makes it tick. I would like to know why the first code doesnt work. I will probably end up using a third party library but I prefer to have a firm base to start from. basically I need a hello world app that runs on my apache server. none of the simple examlpes that I have found work for me.
platform win98
server apache 2.0
tomcruz.net
void main ()
{
printf("Content-type: text/html\n\n"
printf("<HTML><HEAD><TITLE>Hello!</TITLE></HEAD>\n"
printf("<BODY><H1>Hello, World!</H></BODY></HTML>\n"
}
this wont work on my rig. I have a test example working that I got from This example works but its going to take me a while to go through the code and find what makes it tick. I would like to know why the first code doesnt work. I will probably end up using a third party library but I prefer to have a firm base to start from. basically I need a hello world app that runs on my apache server. none of the simple examlpes that I have found work for me.
platform win98
server apache 2.0
tomcruz.net