PDA

View Full Version : Free web host compatible with C cgi scripts



Granger9
12-30-2002, 09:25 AM
Does anyone know where I can get a web host from which is compatible with C cgi scripts??

Thanks

ammar
12-30-2002, 11:13 AM
What are C CGI SCRIPTS?
I've never head of it.
Are they different from CGI SCRIPTS.

Brian
12-30-2002, 11:20 AM
You can write CGI scripts in C, although they wouldn't technically be Scripts, they'd be programs. I suppose they would run faster being pre-compiled and everything.

i.e.


#include <stdio.h>

int main(void)
{
printf("Content-type: text/html\n\n");
printf("<HTML><BODY>Hello</BODY></HTML>\n");
return 0;
}



should work if it is compiled and set up right in the same way a similar perl script would work. But I don't know where to find a server which supports this. If you really need it, just download and run apache and set it up yourself.