Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!news.tc.cornell.edu!caen!reeve.research.aa.wl.com!decwrl!tc.pw.com!news
From: Don Ferguson <ferguson@tc.pw.com>
Subject: Re: Prolog as Web Server
Content-Type: text/plain; charset=us-ascii
Message-ID: <31C581A9.6EA3@tc.pw.com>
Sender: news@tc.pw.com
Nntp-Posting-Host: ferguson.tc.pw.com
Content-Transfer-Encoding: 7bit
Organization: Price Waterhouse
References: <4pr7uk$dbn@senator-bedfellow.MIT.EDU>
Mime-Version: 1.0
Date: Mon, 17 Jun 1996 16:02:49 GMT
X-Mailer: Mozilla 2.0 (WinNT; I)
Lines: 10

Cheng Hian Goh wrote:
> 
> Does anyone have any experience with setting up a Web
> Server using Prolog?

The approach we've used is to have a cgi-bin program (written
in C) that connects to a running Prolog program via a socket.
The Prolog program writes HTML to stdout.  The C program will
restart the Prolog server if it finds it is not running.
This has proved to be fast and reliable.
