the HTDB library can be used to create both CGI applications
and standalone C programs.
why would one wish to create non-CGI applications using HTDB?
well... remember that the libhtdb brings with it database connectivity
and a way to manage textual resources..
by building programs using libhtdb instead of building from
scratch, you are assured of seamless interoperability, access to a
clean DSO mechanism, and a known framework in which to operate while
creating your application.
now that you are familiar with the HTDB application
skeleton program, all you need to do to run it as a standalone program
is to execute it from a command line, and pass it the value of DOCUMENT_ROOT
as arg on the command line. and that's it.
the value of DOCUMENT_ROOT is needed so that the application knows where
to find the runtime configuration file: config.htdb and other HTDB resource
files you may choose to use.
Tue Aug 10 18:54:13 PDT 1999