Mail Archives: djgpp/1999/08/07/08:18:00
David Christensen wrote:
> Hello, World!
>
> I run the FSF distribution ("GNU Software for MS-DOS and
> MS-Windows") of DJGPP on Win98. Best free software I ever paid
> for! :-)
>
> I see that there is a /fsf/lib/perl5/cgi directory. Has anyone
> done Perl/CGI using DJGPP on Win98? Any pointers for a newbie?
> Which httpd? Which browser?
Absolutely does not matter. As long as the perl apps produce valid CGI responses on
stdout (that is html), you're set.
Of course, your httpd of choice must support perl execution. Fortunately, you can
use your perl scripts with my favorite httpd, Sambar (www.sambar.com)
It can run perl, regular command-line programs, even win-cgi or batch files. Wahoo!
Note that you don't even need DJGPP to make perl for sambar... since it does already
the compilation that the DJGPP port of perl would.Only get perl if you want to also
run perl scripts from the command line (as opposed to using batch files).
But DJGPP is good for compiling C/C++ written CGI scripts. Here's a simple one to
try once you get your httpd up and running:
#include "stdio.h"
void main (void)
{
printf("Content-type: text/html\n\n<HTML><BODY>Hello, World!</BODY></HTML>");
}
- Raw text -