ReadMe File for Standard Version of BizDB
##################################################################
#
# BizDB - A Web Database Management System
#
# This is a simple, powerful, flexible, affordable and secured Flat
# File Database System with ADD, EDIT, DELETE, SEARCH, DISPLAY as
# well as IMAGE UPLOAD functions. Updates to database records can be
# password-protected on file or individual record level with complete
# Webmaster control. Definition of database fields and output layouts
# are controlled by Html templates. Installation is easy. You don't
# need to modify the CGI scripts other than a couple of configuration
# parameters, which have been documented clearly, in order to make our
# database system working on your server. While we don't need you
# to know Perl or CGI programming, we do suggest that you should know
# the basic of Html programming in order to develop a set of workable
# Webpage/database interface templates yourself. Of course, we are
# always available to provide development assistance at a very
# reasonable cost.
#
# As any other flat file database systems, BizDB is designed for
# small to medium sized databases only with relatively simple database
# requirements. If your overall database size is larger than 2-3MB
# ( depending on your server and system capacity ) and you have lot of
# data fields to search, we suggest you to consider a relational database
# solution.
#
##################################################################
#
# Demonstration Website: http://www.cnctek.com/bizdb-html/
# E-mail: cnctek@cnctek.com
#
# MINIMUM SERVER REQUIREMENTS:
#
# Runs on any Unix, Linux or Windows NT Operating System;
# Provides full FTP access (or access via a Control Panel);
# Supports Perl and cgi-bin; Allows creation of files and
# directories by cgi programs.
#
# NOTE:
#
# *************************************************************
# THE LICENCE OF THIS SOFTWARE IS FOR SUPPORTING WEBSITE(S) ON
# THE SAME DOMAIN NAME. IF YOU WANT TO SUPPORT MORE THAN 1 DOMAIN
# NAMES, EVEN THEY ARE ON THE SAME SERVER, YOU WILL NEED TO ORDER
# MULTIPLE LICENCES.
#
# ORDER OF THIS SOFTWARE IS NOT REFUNDABLE. WE ARE GLAD TO
# PROVIDE TECHNICAL ASSISTANCE AT REASONABLE COST.
# *************************************************************
#
# COPYRIGHT NOTICE
#
# The BizDB software is a product of CNC Technology. All rights reserved.
# Only the user with our permission can use and modify this software.
# Also permission is granted to execute this software on one domain name
# only. Without CNC Technology's permission, no part of this script can be
# reproduced ( other than the backup copy ), resold or redistributed to
# any other individuals, companies and organizations.
#
# DISCLAIMER:
#
# These Scripts are provided on a "As Is" basis. CNC Technology
# will not be liable ( nor responsible ) whatsoever for any direct
# or indirect damages caused by the use of this Software
# ( or Scripts ).
#
##################################################################
Please read the following paragraphs carefully. This is essential
if you want to have a smooth and successful installation.
***FOR EXISTING BIZDB USERS, PLEASE ALSO READ RELEASE-NOTE.TXT FILE.***
When you read this file, we know that you have successfully
decompressed our ZIP file using a 32 bits WinZip (or equivalent)
program.
##################################################################
TABLE OF CONTENTS:
A. Contents in our ZIP file
B. System Configuration Parameters
C. Webpage / Database Interface Templates
D. Defining Html Template Filenames
E. Defining Database Record Fields
F. Other Parameters used by Input-Control Templates
G. How to Display Database Field Values on Edit or Search Report
H. Installation Procedures - Using FTP or our Installer explained
I. Calling the CGI programs by "GET Method"
J. More on producing search reports via a URL link
K. Important notes for Windows NT Server Users
L. Notes on Supporting Non-English Character Set
M. Notes on Supporting Large Number of Database Records
N. More Support Notes If You Have Problems During Installation
O. Check this section before contacting us - New Features, FAQ, etc.
P. Obtaining our Professional Installation Service at affordable rates
Q. Please Help Us to Help You
##################################################################
A. Contents in our ZIP file
You should have at least the following files for a standard version
of our system:
(1) bizdb-installer.cgi - CGI script allowing you to:
(1) configure and install a new BizDB
database system on your Web server,
(2) upload any manually modified file,
such as CGI script or Html template,
to your Web server..
(2) bizdb-aed.cgi - CGI script used for Add, Edit, Delete
and Show any specified database records.
(3) bizdb-search.cgi - CGI script used for Search and Display
multiple database records at one time.
(4) bizdb_upload.cgi - CGI script used for Upload image to
the database in conjunction with the
Add, Edit and Delete functions.
(5) bizdb-add - The sample Add DB record Html template.
All database fields (except f1 - f5) are
defined and referenced here.
(6) bizdb-edit - The sample Edit/Delete/Show DB record
Html template. You will use this template
to retrieve and edit/delete a specific
DB record ( based on record key ). You
can also use this template to display
all the record keys in your database.
(7) bizdb-search - The sample Search DB records Html
template. You will use this template
to specify search criteria ( keywords )
for the bizdb-search.cgi program.
(8) bizdb-summary - The sample Display DB Records Html
template. You will use this template
to define which and how DB fields are to be
displayed in the search report. Fields
belonging to the same record will be
displayed in a group. This will be repeated
for each record until all records or a
group of x records are displayed.
(9) bizdb-detail - This sample Html template is used
to display details of a given record.
Unlike the "bizdb-edit" template, the
database fields are not updatable. This,
in conjunction with the "bizdb-summary"
template, can be used to construct a
powerful search engine.
(10)upload_image - This Html template control the upload
of user image from any directory on his
PC to a pre-determined server database
image directory. The filename of the
destination image will be set equal to
the record key followed by .gif or .jpg.
(11)index.html - The sample homepage for calling various
database functions, such as Add, Edit,
Delete and Search. You can use this
homepage to test your database.
(12)ReadMe.txt - It's this document.
(13)bizdb - Sample Business Directory database file.
(14)rec_nr_file.txt - Record Number Allocation File - Used only
if $auto_assign_rec_nr = "yes". This file
should be stored in the same directory
as your database files.
(15)testing.cgi - Execute this test script to see if your cgi-bin
directory is working properly. This script
will also help you to find out the absolute
pathname of your Website's home directory.
(see Section N for more details)
If you have used our development assistance, we will include more files
to meet your specific needs. This will be mentioned in a separate document
or e-mails.
B. System Configuration Parameters:
You will have to modify a number of System Configurations Parameters
in the Scripts before you can upload them to your CGI-BIN directory.
These parameters are CGI script specific, therefore you should read
our following sections or the notes on our scripts very carefully.
Parameter Name Where Description
(1) $maxfields bizdb-aed.cgi Maximum number of DB Fields.
bizdb-search.cgi
(2) $maxdisplay bizdb-search.cgi Maximum number of records
to be extracted in each search.
(3) $maxdispscreen bizdb-search.cgi Max Records to be displayed
per screen.
(4) $security bizdb-aed.cgi Controls security for Add,
Edit and Delete DB Records.
If not present or = 0, anyone
can Add/Edit/Del.
If = 1, only the one who knows
the supervisor password can
Add/Edit/Del.
if = 2, each DB record is
protected by a unique password.
Only the one who knows the
user password or the supervisor
password can Add/Edit/Del.
(5) $superpwd bizdb-aed.cgi Supervisor Password. Anyone
(presumably the Webmaster)
knowing this password will
have the absolute authority
to add, edit and delete any
database records. Therefore
it is essential to keep this
password confidential.
(6) $addtotop bizdb-aed.cgi Controls adding new and edited
records to the database.
If "yes", new and edited
records will be added to the
top of the database, otherwise
they will be added to the
bottom.
(7) $database_dir bizdb-aed.cgi Full pathname of the directory
bizdb-search.cgi in which your database is
stored. If possible, location of
your database file should be
stored outside the Html directories.
(8) $template_dir bizdb-aed.cgi Full pathname of directory in
bizdb-search.cgi which your Html templates are
stored.
(9) $upload_dir bizdb-aed.cgi Full pathname of directory
bizdb-search.cgi where the uploaded (image) file
bizdb_upload.cgi will be stored.
(10)$max_upload_buffersize Maximum buffer size (in bytes)
bizdb_upload.cgi allowed for the image file
to be uploaded to the server.
(11)$return_url bizdb-aed.cgi Return URL link used by OK and
bizdb-search.cgi error messages.
bizdb_upload.cgi
(12)@valid bizdb-aed.cgi These are the urls (separated
bizdb-search.cgi by comma) that are allowed to
bizdb_upload.cgi execute this database system.
This prevents any of our
programs to be accessed by
unauthorized Websites.
(13)$mailprog bizdb-aed.cgi Location of "sendmail" program.
bizdb_upload.cgi You need "sendmail" to send
"Notification emails to the
Webmaster" if the "recipient"
input form field exists in your
Html templates. Check with your
ISP.
(14)$this_cgi_url bizdb-search.cgi Url of the CGI script you are
working on
################################################
* * * Parameters (15,16) are to be used together * * *
(15)$auto_assign_rec_nr Assign record number by the
bizdb-aed.cgi system automatically.
(16)$rec_nr_file bizdb-aed.cgi Record Number Allocation File
#############################################
(17) $serverOS bizdb-aed.cgi Set this parameter to "unix"
bizdb_upload.cgi if your server is running on
an Unix or Linux operating
platform. Set it to "nt"
for Windows NT.
(18) $charset bizdb-aed.cgi Define the character set to
be used by your database software
and Html templates. This is
required for some foreign
languages. Also see section L.
#############################################
New parameters introduced after 20th Jan 2001
(19) $check_password_on_showrecord Set this parameter to "yes"
bizdb-aed.cgi if you don't want any user to
see the content of a record on
the Edit record screen unless the
record password is matched with
password input by the user.
Set this parameter to "" if no
password checking is required.
#############################################
Set the following parameters ($login_ctl, $expiryDate_fld,
$expiry_period) only if you have installed our separately priced
"LoginControl" add-on feature. Do not change the value of
these parameters in the "bizdb-aed.cgi" and "bizdb-search.cgi"
scripts if using "BizDB Standard" Version only.
(20) $login_ctl bizdb-aed.cgi Login Control for accessing the
database. Must set $login_ctl to ""
if using "BizDB Standard" alone.
If $login_ctl = "yes", users must
login to a member area first before
executing the Edit and Delete
functions.
(21) $expiryDate_fld bizdb-aed.cgi Records can be set to expire after
bizdb-search.cgi xx days. This variable defines which
field number in the database will
store the record expiry date. Set
this to f20 if field number 20 is
used to store the expiry date.
Set this variable to "" if there is
no need to store the record expiry
date. If this field is defined, the
search program will ignore the record
if the expiry date of the record is
empty or expired.
(22) $expiry_period bizdb-aed.cgi The expiry date of a newly submitted
record will be set to today's date
PLUS the xx days defined by
$expiry_period. The webmaster can
delete a batch of records which are
expired between a certain period.
If you don't want to expire a record,
set it to 99999 days (277 years).
This variable must contain a number if
$expiryDate_fld is not empty (i.e. "").
If $expiryDate_fld is empty, this
variable will be ignored.
C. Webpage / Database Interface Templates:
You will need to set up a number of Html templates to take input
requests, handle new and modified data, upload image files and control
output layouts.
These templates will be the key interface between users and the database
management system. You can use the same set of CGI scripts to handle
different databases with different field definitions simply through the
use of interface templates.
We found that explanation could be difficult without referring to some
real examples. We have therefore developed a set of sample templates
which you can display them on a second window screen using a text
editor. As you read this document, we suggest that you read carefully
the content of the relevant template and try to understand its concepts
and logics.
When you develop your Html templates, we strongly recommend that you
start from our sample templates, add and modify the database fields
as well as comments to meet your own needs. It is important to backup
a copy of the original sample templates before you make your
modifications.
Please use the following statements to display a Html template with
empty fields on the screen:
1. Record Addition:
http://www.yourdomain.com/your_cgibin/bizdb-aed.cgi?bizdb-add OR
http://www.yourdomain.com/your_directory/bizdb-add.html only if your
record addition page has an .htm or .html ending
2. Record Update/Delete:
http://www.yourdomain.com/your_cgibin/bizdb-aed.cgi?bizdb-edit
3. Batch Record Deletion:
http://www.yourdomain.com/your_cgibin/bizdb-aed.cgi?bizdb-delete
4. Record Search:
http://www.yourdomain.com/your_cgibin/bizdb-aed.cgi?bizdb-search OR
http://www.yourdomain.com/your_directory/bizdb-search.html only if your
record search page has an .htm or .html ending.
where bizdb-add, bizdb-edit, bizdb-delete and bizdb-search are Html
template filenames. Please also see Section D.
*** NOTE ***
Your job now is to construct a set of workable and beautifully formatted
Web/user interface templates to meet your specific needs. You may use any
Web page generator/editor to create your template pages. However, when you
prepare your template files, please make sure your top priority is to get
the system work. Do not spend too much time on the graphic designs and page
layout which you can always refine later. Please remember to use standard
and full Html commands. For Html tags which contain your database field names
( eg. or or