www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/07/08:18:00

From: Moogla <ngoldber AT lan DOT tjhsst DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Perl/CGI for Win98
Date: Thu, 05 Aug 1999 22:53:49 -0400
Organization: MindSpring Enterprises
Lines: 32
Message-ID: <37AA4E3D.4B6928E0@lan.tjhsst.edu>
References: <37a9fbac AT news5 DOT newsfeeds DOT com>
NNTP-Posting-Host: a5.f7.44.13
Mime-Version: 1.0
X-Server-Date: 6 Aug 1999 02:51:22 GMT
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019