HTDB : Docs : Developer's Guide : Applications
About
Overview
Philosophy
Features
News
Download
Help Us!

Docs
Overview
Designers
Developers
Functions
Database
CGIs
Applications
Roadmap
Architecture

Community
Powered By

[home]
Stand-alone applications

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[1] on the command line. and that's it.

./program path_to_htdocs

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.

del - Tue Aug 10 18:54:13 PDT 1999
   
8,520 impressions