Simple CGI help
Posted: Tue Aug 12, 2003 2:25 am
I have attempted to write a few CGI utilities in both Blitz and Pure Basic without much luck. I don't want to bother with Perl. I came across the following link : http://computer.howstuffworks.com/cgi3.htm which really simplifies how CGI works. The simplest example in C being :
I download the LCCWIN32 compiler, never having used it before, pasted the code above into it, "make" the exe and test it on my server. Works the first time. So quick, so simple. Written in C.
Would someone kindly walk me through the same process using Pure Basic?
Code: Select all
#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;
}
Would someone kindly walk me through the same process using Pure Basic?