Search Engine Documentation
Back to main page
The search engine consists of the following files:
search.c - C source code for the search engine.
search.html - GUI for the search engine.
search.cgi - CGI for the search engine compiled with GNU for Win32.
links.txt - Contains a list of the htm file in the web site. Files that
are not listed in this file will not be included for searching.
- Important! Do not leave any blank lines after the last entry.
Otherwise, the last entry of the search result would appear
twice.
cygwinb19.dll - Run-time library for GNU Win32.
Installation Procedure:
1) All the html files to be searched must be located in the public root
directory. (For example, c:\public_html)
2) The following tags must be added to all the html files to be searched:
i )
- In CONTENT="...", type in the keywords of this html file inside
the quotation marks. Separate each keyword with a blank space,
not commas!
- The search engine will search the keyword section to find any
matches.
ii)
- In CONTENT="...", type in the a brief description of this html
file within the quotation marks.
- The description will be displayed in the search results if a
match is found.
Example:
Page Title
3) Unzip "search.zip" using WinZip. The unzipped files should be in the public
root directory except for "search.cgi". (For example, c:\public-html. If
this is not the name of your root directory, you must modify the path name
in the source code and re-compile the program.) "search.cgi" should be in
the cgi directory (eg. cgi-bin) if you have created one.
4) Append the file names of the html files to "links.txt" using any text editor.
(Add one file name per line.)
Troubleshooting:
If you experience CGI errors with the search engine, try the following:
- Add a blank space after the last entry of the file, links.txt.