|
From: Wizard <wi...@ne...> - 2002-01-25 13:01:02
|
To Whom it may concern:
I wrote a CGI textfile database some time ago that almost entirely used
configuration files for it's setup. In general, this is how it works:
Change two lines in script itself - bang line & configuration file path.
Everything else is done in these files (names are arbitrary):
SCRIPT.CFG - defines debug settings, database delim, and supporting file
paths
FIELD.CFG - defines the database field descriptors, such as number of
fields, field names, field type (text, autodate, key,
createdate),
Maximum entries per display page, sort order, and primary and
secondary sort key fields.
The program uses pre-written Header, Footer, and Data Templates to display
results. That means that customizing the look can be done with any HTML
editor.
It has a search feature (which works fine, but is just a simple 'look-n-see'
function), and admin scripts. It does NOT use CGI.pm, as I am not a big fan
(CGI.pm writes non-compliant HTML, and does not allow one to specify
newlines to be printed, which makes troubleshooting difficult).
I've attached the README file. If nms would be interested in looking at this
as an addition to the package, please let me know, and I will be happy to
contribute it to the mix.
Grant Mongardi
|