From jacinto@ing.ula.ve Sun Oct 8 20:50:01 2000 Received: from haendel.ing.ula.ve (root@haendel.ing.ula.ve [150.185.146.1]) by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id UAA23724 for ; Sun, 8 Oct 2000 20:49:58 +0200 (MET DST) Received: from ches (ches.ing.ula.ve [150.185.146.51]) by haendel.ing.ula.ve (8.9.0/8.9.0) with ESMTP id OAA22083; Sun, 8 Oct 2000 14:50:24 -0400 (GMT-0400) Date: Sun, 8 Oct 2000 14:50:26 -0400 (EDT) From: =?ISO-8859-1?Q?Jacinto_A=2E_D=E1vila?= X-Sender: jacinto@ches To: Oliver cc: Prolog Subject: Re: Executable File In-Reply-To: <39DE3ECD.DA636BF2@unet.univie.ac.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by swi.psy.uva.nl id UAA23724 For MS-Windows: 1.- Save your programa in a file, say test.pl. 2.- load it into SWI-PROLOG plcon shell (not in plwin) ?[test]. 3.- Execute ?qsave_program(testing, [autoload=true, stand_alone=true, goal=main]). 4.- By now, you should have an executable file called testing.exe in your working dir. Move that file to the cgi-dir of your web-server. Make sure that SWI library libpl.dll, goes with it. (try to execute it from a DOS windows, to see if it´s ok). 5.- Run it the from Internet (provided, of course, you already have a running webserver) http://whereveryourserveris.com/scritps/testing.exe Jacinto A. Dávila On Fri, 6 Oct 2000, Oliver wrote: > Hi there, > > Please, can anybody tell us how we can run the following program: > > main :- > write('Content-type: text/html'), nl, nl, > write(''), > write('Hello world.'), > write(''). > > in the WWW? We use SWI-Prolog. Do we need CGI? If yes, how can we make a > > CGI-file? > > So long, > > Gerd > > > > > ---------------- > * To UNSUBSCRIBE, please use the HTML form at > > http://www.swi.psy.uva.nl/projects/SWI-Prolog/index.html#mailinglist > > or send mail to prolog-request@swi.psy.uva.nl using the Subject: "unsubscribe" > (without the quotes) and *no* message body. > > ** An ARCHIVE of this list is maintained at > > http://www.swi.psy.uva.nl/projects/SWI-Prolog/mailinglist/archive/ >