Microsoft IIS version 4

Regards Eion

> -----Original Message-----
> From: Jerermy Coulter [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, 25 July 2000 14:45
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  HTML Creation
> 
> what HTML Server are you using ??
> 
> This matters....
> 
> Jeremy Coulter
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Eion McIntosh (CHCH)
> Sent: Tuesday, July 25, 2000 2:40 PM
> To: Multiple recipients of list delphi
> Subject: [DUG]: HTML Creation
> 
> 
> Hi
> 
> We are just in the process of starting to look at how to creating web
> pages out of Delphi.
> We have a copy of Mastering Delphi by Marco Cantu with an sample
> program
> (see below) for creating
> as sample web page with the current time on the fly.
> 
> The program compile and run but only in a window.
> The example shows the address line as
> http://pentium/cgi-bin/cgidate.exe
> to run the program and display in the web browser.
> But we can't seem to make it run. We've tried directly off our server
> name and address but it just either executes in its
> on window or says it can't find page.
> 
> What are we missing and have to do to get it to work?
> 
> program CgiDate;
> 
> {$APPTYPE CONSOLE}
> 
> uses
>   SysUtils;
> 
> begin
>   writeln ('HTPP/1.0 200 OK');
>   writeln ('CONTENT-TYPE: TEXT/HTML');
>   writeln;
>   writeln ('<HTML><HEAD>');
>   writeln ('<TITLE>Time at this site</TITLE>');
>   writeln ('</HEAD><BODY>');
>   writeln ('<H1>Time at this site</H1>');
>   writeln ('<H2>');
>   writeln (FormatDateTime(
>     '"Today is " dddd, mmmm d, yyyy, ' +
>     '"<br> and the time is" hh:mm AM/PM',
>      Now));
>   writeln ('</H2>');
>   writeln ('<HR><I>Page generated by CgiDate.exe</I>');
>   writeln ('</BODY></HTML>');
> end.
> 
> Regard 
> Eion McIntosh
> PPCS Ltd
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> 
> 
> ----------------------------------------------------------------------
> -----
>     New Zealand Delphi Users group - Delphi List -
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to