Answer the question
In order to leave comments, you need to log in
C++ cgi won't start and I can't figure out why?
I'm just starting to learn c++ in cgi, once I managed to run it on a hosting, but with a call to support. Maybe they did something, I don't know.
But now I'm trying on my own and it doesn't work.
i compiled and named the file hello.cgi i found the code here:
www.purplepixie.org/cgi/howto.php
#include <stdio.h>
int main(void)
{
printf("Content-type: text/html\n\n");
printf("<html><title>Hello</title><body>\n");
printf("Goodbye Cruel World\n");
printf("</body></html>");
return 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question