From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111659,509328845dc85b2e X-Google-Attributes: gid111659,public X-Google-Thread: 103376,443ef81d0a810cc1 X-Google-Attributes: gid103376,public X-Google-Thread: 10baee,443ef81d0a810cc1 X-Google-Attributes: gid10baee,public X-Google-Thread: 10261c,509328845dc85b2e X-Google-Attributes: gid10261c,public From: sking9999@my-deja.com Subject: Re: cgi in turbo pascal or freepascal in windows 95 Date: 2000/05/15 Message-ID: <8fo2aq$6ga$1@nnrp1.deja.com>#1/1 X-Deja-AN: 623483588 References: <391BA598.A750AD0A@enztecNOS.PAMorg> <391D527C.AED6AAA8@enztecNOS.PAMorg> X-Http-Proxy: 1.0 x31.deja.com:80 (Squid/1.1.22) for client 208.11.43.32 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon May 15 05:35:23 2000 GMT X-MyDeja-Info: XMYDJUIDsking9999 Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,comp.lang.pascal.delphi.misc,comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (WinNT; U) Date: 2000-05-15T00:00:00+00:00 List-Id: > I translated it into the following turbo pascal, freepascal and console > delphi pascal dialect 'Hello World!' cgi program : > > program cgi1; > const nl = chr(13) + chr(10); > begin > write('Content-type: text/html',nl,nl); > write(''); > write('

Hello World!

'); > write(''); > end. I think you should use writeln instead of using constants to specify end-of-line. Like so program cgi1; begin writeln('Content-type: text/html'); writeln; write(''); write('

Hello World!

'); write(''); end. > With freepascal running on both Windows and Linux it is the way to go. Have you considered using Irie Pascal? Before I go any further I must admit that I am biased becuase I am the author of Irie Pascal but I think it is worth considering. The website is www.irietoools.com. The current version of Irie Pascal has a problem with Microsoft Personal Web Server and IIS. A fix for this problem is ready but I want to test with Apache for Windows before I release the fix. If you are at all interested then you can contact me through this forum or through the website and I will provide you with more information and the fix when it becomes available. PS: Irie Pascal also runs on both Windows and Linux. Stuart Sent via Deja.com http://www.deja.com/ Before you buy.