[Xitami] basic as a script cgi code

Marc Doigny marc at verfaillie.be
Thu Jun 5 08:21:38 CEST 2008



-----Original Message-----
From: xitami-bounces at lists.xitami.org
[mailto:xitami-bounces at lists.xitami.org] On Behalf Of Magnus Wedberg
Sent: donderdag 5 juni 2008 0:16
To: Xitami Users General Discussion
Subject: Re: [Xitami] basic as a script cgi code

Paul Reid wrote, On 2008-06-04 23:50:
>  > basic as a cgi code
> 
> ANY DOS/Win program (likewise anything executable under unix) can be
run 
> as a CGI.

...if they write to standard output. Turbo Pascal programs, for example 
(yeah old), have some own routines for that and cannot be used to run 
CGI -- they must be wrapped in a batch file (!) for that to work. So, 
strange workarounds may be needed.

Xitami allow input/output files instead of stdin/stdout, making Xitami
more easy to use than any other webserver. Get the file name via the
environment: ENVIRON$("CGI_STDIN")
And basic is not dead, don't focus on old QuickBasic (or visual basic)
only. Some basic compilers produce very tight code. If you are used to
program in any basic dialect, go for it!

marc



More information about the Xitami mailing list