Hawkwynd.com
Browse our Online store!
Hawkwynd.com Online Store - Great Gifts for You!!
Destinations
News
Weather
Development
Motorcycles
Shop
Blog
Streaming
My Works
Contact

SearchIt Installation Documentation for Win98 Web Server

A Freeware product based on the script:
Copyright 1996 Techno Trade
http://www.technotrade.com
Written By : Sammy Afifi
sammy@technotrade.com

Changes and modifications of the original script by Hawkwynd @1998 Hawkwynd's Keep

Overview

This script performs a search on keywords entered in a textfield input and returns the results when compared to a database created by the user [urls.txt]. The script is small, fast and easily configurable for optimum speed and performance. This scripts fills the need for a small, and light-weight script that can produce simple search patterns for links to pages within your web site, or with the use of the form, users can add to the database with urls and links to pages outside of your web site.

Download SearchIt.zip file

The SearchIt.zip file is available in orginal form at the link listed above. This version of the script is available from this site. Once downloaded here is what is contained in the zipfile:

Installing the files

To install the files, place the files in a directory of your choice, for example, SearchIT, and extract all but the urlsrch.cgi file to it. The cgi file should be placed in you /cgi-bin folder.

Editing the HTML files

ADDLINK.HTML
Open the ADDLINK.HTML file using your favorite HTML editor (Not FrontPage) and make the following adjustments to the code:

<FORM METHOD=POST ACTION="/your-dir/urlsrch.cgi">

This line should reflect the directory of where you placed the CGI file, which should be your /CGI-BIN directory.

The remainder of this file can be seasoned to taste, but leave the values and variables intact.

INDEX.HTML
Perform the same changes you made to the FORM line as above

URLS.TXT
Make no changes to this file.

URLSRCH.CGI
The bang path should reflect your path to the Perl interpreter:

#!D:/5.00502/bin/MSWin32-x86-object/perl.exe

print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#0000FF VLINK=#800040 ALINK=#800040>\n";
print "<TITLE>Search Results</TITLE>\n";
print "<CENTER><BR>\n";
print "<IMG SRC=/images/keep.gif align=left>";
print "<FONT SIZE=5 COLOR=000000 FACE=\"TIMES NEW\">Search Results</FONT></CENTER>\n"

Here, you can make needed changes to suit the needs of your site, and place whatever images or things. THis is the results page, printed out by the script when a user performs a search. Do not make changes to the Content-type line!!! It is required and must be exactly as it is listed, or the page will not display.

print "Content-type: text/html\n\n";
print "<html><head><title>Thank You</title></head>\n";
print "<body><BR><CENTER><Font face=Verdana Size=5>Thank You For Adding to the search database</CENTER></font>\n";
print "<BR><BR>";
print "<font face=verdana size=2> Your entry is available for searching immediately, unlike the commercial database searches which could take <B>weeks</B> before you see your results. Nice -eh?";

At the bottom of the script is the Thanks after a user adds his/her URL to the database. Here again you can make the changes required to suit your needs.

Well kids, that's about it. Simple and easy.

Questions? Email me.

Home