|
For the World's Most Important Web Site - YOURS! VPS v1 Support Documentation |
||||||
|
|
SWISH-E - Web Site Search UtilityA convenient method to allow clients to retrieve information from a web site is by building an index of the web pages and providing search capability. This may seem like a daunting task, but with a few tools this task becomes very easy. Normally web indexing and searching requires a complex, hard to use and install WAIS-based solution, however a small yet powerful program SWISH-E, (which is based on SWISH written by Kevin Hughes), can be used to fulfill your web indexing and searching needs. InstallationTo install SWISH-E on your Virtual Private Server, connect via SSH or Telnet and run this command: % vinstall swish-e
UsageTo use SWISH-E, do the following.
The Search FormTo install the search on your web site you will need to download the Search Form and store it somewhere in your usr/local/etc/httpd/htdocs directory structure. Feel free to customize the form, add graphics, etc., but be sure that the variable name for each input field is not altered. The form can be customized for your Virtual Private Server by simply changing the occurrence of SWISH_INDEX_FILE to the name of the swish-e index which you specified as the value for the IndexFile variable in the SWISH-E configuration file. You may hide the maxresults field by simply using a type=hidden argument with the input tag. The Search CGIThe CGI script is installed into your www/cgi-bin/ directory with the name search.pl.sample. You will need to change the filename to search.pl and make it executable. From the SSH or Telnet prompt, run the following commands: % mv search.pl.sample search.pl% chmod 755 search.pl You can customize the appearance of the search CGI, if you wish. Two subroutines in the ~/www/cgi-bin/search.pl file, print_header and print_footer are used to print out header and footer information. You can find these by searching for the string MODIFY ME in the script. You can then insert whatever HTML you want between the line print <<_HTML_; and _HTML_. More InformationFor more information and documentation see: |
|||||
|
© 1996 - 2008 Web Hosting Solutions 1311 Darcann Drive, Columbus, OH 43220 1-888-522-3738 Money Back Guarantee 99.9% Uptime Guarantee Like sports? Visit ColumbusSports.com |