![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Hi Franc,
The variable TRANSACTION# is defined in the example Custom.F. The
example script TEST.FS (which is accessed as http://localhost/Test.shtml
) references that variable. You'll see it's value on the rendered page
just above the table at the bottom (ex "Time is 07:22:45 Transaction#
5"). This demonstrates that global (i.e. none transient) data can be
accessed and modified by a client session.
I did find one annoyance: When starting the server and compiling
Custom.F, any output which would normally be displayed to the console
will cause a fault. If Custom.F contained the phrase .( I'm Compiling)
for example, the server would abort. The problem is that the SwiftForth
console does not exist (and must not exist to satisfy the licensing
requirements). The fix is quite simple; place the following near the
top of Custom.F:
>FILE Compile.Log
This will redirect any compile time output to the file "Compile.Log".
Hope this helps,
Mike
-----Original Message-----
From: Franc Vodopivec [mailto:fvodo64_at_hotmail.com]=20
Sent: Wednesday, February 16, 2005 2:36 PM
To: Mike Ghan
Subject: SwiftForth WebServer - question
Hello Mike.
I am sending this to you directly because I don't know if this would be
of general interest to the group.
I bought SwiftForth and am working on a "real" project. The project
consists of parsing a number of 5 to 300 MB files that contain
specifications and logic for various database applications for the
purposes of having oon-line inquiries for documentation purposes (what
programs use this field/file?). I would like to use your webserver to do
this however I can't access any memory that is in the "custom.f" area
(which is where I put the parsed info). The parsed docs take between 1
and 10 MB of Forth dictionary space.=20
If I put the specs into a database it will slow down by a few orders of
magnitude. If I put the parser in the scripts it will be too slow as
well and will parse on EVERY hit. In a perfect world I would like to
parse a system in the "custom.f" section and then have access to its
variables (files, fields, logic) from the script side. Do you have any
solutions for this problem?
Thank you for your time and thanks for the webserver
Regards,
Franc Vodopivec
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu Feb 17 2005 - 08:18:33 PST
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:14 PST