UPOINT:: CGI Scripts: FAQ

Title: @1 Web Dictionary: Script installation
Steps of installing the script.

• One main script, dictionary.cgi
• One text data file.
• One public search page and one admin page
• One result output template page.

Configuration part:

#You MUST modify each of the variables in this this section

#B1. REQUIRED: The location of data file on your server. This must
#be the PATH to your data file, not the URL of your data file!
# MUST BE CHMOD TO 666. PLACE IT IN PARALLEL TO WITH YOUR ROOT DIRECTORY
# FOR HIGHEST SECURITY.

$data="/usr12/home/andypong/dictionary/dictionary.txt";

#B2. REQUIRED: The URL of this file in your cgi-bin directory. You must
#provide the full URL, beginning with http
# MUST BE CHMOD TO 755.

$thisurl="http://www.upoint.info/cgi-bin/my_dictionary/dictionary.cgi";

#B3. OPTIONAL: You can format the and closing HTML
#of your results page in a separate file that can be written in
#regular HTML and saved on your server. If your script can't
#find this file and open it, the default result screen is displayed
#instead. For ease of configuration, place it in the same directory
#as your data file. Note: this file must have three plusses +++
#where you want your search results inserted.
$openinghtml="/usr12/home/andypong/public_html/myscripts/freelink/template.htm";

#B4. REQUIRED TO ADD, DELETE, OR MODIFY. See
#important information in the help files about adding additional
#Security features to your script.

#Change password to any combination of letters (A-Z, a-z) and
#numbers 0-1. USE ONLY LETTERS AND NUMBERS

$adminpassword="upoint";

#B5. URL to send users to after posting, editing, or getting errors.
#This is usually the main page for this section of your site
$forwardingURL="http://www.upoint.info/myscripts/dictionary/dictionary_admin.htm";

#B13. URL to the base image directory for field: Picture
#When you created your script, you specified that that the field
#Picture contained filenames to graphic files stored on your server.
#For these files to be accessible, you need to specify the
#base URL where they can be accessed. The URL should end with a
#forwardslash. No image size is specified here. For the output page to be
#generated fast, go to K15 and manually add in the images sizes.
#Eg. height=\"50\" width=\"50\"
$baseurltoPicture="http://www.upoint.info/myscripts/dictionary/images/";

#C1. Maximum number of matching records to display per page
$maximumpage=5;

#C2. Maximum total number of records to display per search,
#for stylistic reasons, should be multiple of above number
$maximum=20;

  Powered by Document Publisher