[Xitami] New to Xitami & running xbase++ CGI's

xitami@lists.xitami.org xitami@lists.xitami.org
Mon, 2 Jun 2003 14:03:20 -0400


 As you pointed out, only exe's get run, but the key to getting IIS to accept an exe is a little 16k dll that acts as a 'thunking' layer. The dll is named the same as its larger exe brother..call the dll in the script and the exe is run, which in turn returns the page. I realize now that this applies only for IIS. I had used o'Reilly in the distant past [ and may have to use it again ??] and it recognized the the .exe extension. Xitami appears to make a leap of faith that this is a script [ given the cg-bin in the tag ]

 What I've tried is to NOT use the dll extension and call the exe directly..but use just the file name instead. cgi-bin/MZload1 with no file extension. I get a blank page returned. Look on the bright side at least it found something this time out, and judging by the brief delay it looks as if something is being run.

 Brent

> 
> From: "Jeff Hamblin" <jphamblin@cox.net>
> Date: 2003/06/02 Mon AM 11:41:39 EDT
> To: <xitami@lists.xitami.org>
> Subject: Re: Re: [Xitami] New to Xitami & running xbase++ CGI's
> 
> From: <brent.mawhinney@rogers.com>
> > Thanks. File received, loaded and run succussfully.
> >  So I guess the issue isn't the mapping but some other setting.
> >  I attempted to run my dll [ which is uspposed to call the exe ].
> > MZLOAD1.dll and I receive a windows warning 'You area
> > attempting to open a file of type "Application Extension" dll '
> > and suggests that running a file of this type may be harmful
> > etc. Its as if its trying to download the dll instaed of running
> > it the same way IIS used to.
> > 
> 
> CGI runs executable files -- not DLLs. DLLs are not directly
> executable. As the name infers, they are Dynamic Link
> Libraries that are used by applications.
> 
> Your DLL is likely an
> ISAPI DLL designed to work with IIS. This has some performance
> benefits since the DLL is loaded once by the IIS exe into
> its memory space, whereas CGI exes must run-execute-close
> each time they are needed.
> 
> 
> Further, a CGI exe must
> conform to the input/output requirements of CGI.
> Try calling your exe directly.
> 
> 
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>