Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!arclight.uoregon.edu!ais.net!newsfeed.concentric.net!vyzynz!inquo!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!news.syd.connect.com.au!news.bri.connect.com.au!fjholden.OntheNet.com.au!corolla.OntheNet.com.au!not-for-mail
From: Tony Griffiths <tonyg@OntheNet.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: W3-mSQL 1.0 mods (promised but never delivered!)
Date: Thu, 24 Apr 1997 17:14:47 +1000
Organization: On the Net (ISP on the Gold Coast, Australia)
Lines: 32
Message-ID: <335F0867.2D6A@OntheNet.com.au>
Reply-To: tonyg@OntheNet.com.au
NNTP-Posting-Host: swanee.nt.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (WinNT; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39656
OK, I've been prodded into action by a request for the W3-mSQL mods
that I did some time back (and another one just an hour or so ago).
The updated 1.0 sources can be obtained from-
ftp://ftp.onthenet.com.au/pub/unix/w3-msql/
which contains the individual files as well as a compressed tar.
Basically, the mods add the functions:-
<! msql do_while (<expression-is-true>) >
....
....
<! msql done >
and the function:-
<! msql bailout >
The {do_while .. done} can be within an {if .. else .. fi} construct and
the {if .. fi} also works within a {do_while .. done}.
The "bailout" does just that... Calls the function sendFooter() to send
all of the termination HTML stuff and then calls exit()! It's main
purpose if for terminating a CGI/w3-msql script asap so that the parser
doesn't continue to try and do things that are obviously going to fail
and generate a fatal w3-mSQL error.
At some stage next week I will be trying out mSQL v2.0-beta and will try
to hack the same functionality into that version...
Tony