i need to create a cgi script for my schools website. i compiled a test cgi script to run on my computer to see if it works, but it didnt load in IE.
i compiled it as i would any other program but renamed it to cgi instead of exe. here is the code but i dont think it matters.
are there any webserver emulators i could try to run this script on? my webhost only provides cgi support to premium members and i am not one.Code:#include <stdio.h> int main() { printf("Content-type: text/html\n\n"); printf("<html>\n"); printf("<body>\n"); printf("<h1>Hello there!</h1>\n"); printf("</body>\n"); printf("</html>\n"); return 0; }