############################################################################# # SearchWWW for Linux, Solaris and AIX. Version 2.0 # # # # Copyright 1997-2000 Bill Gilmore Last Modified 08/18/00 # # # # Email questions or comments to billg@wcc.net # ############################################################################# # SearchWWW is a simple script that takes input from a html and sumits it # # to a search engine. The there are two input variable location (the name # # of the search engine) and search (this is the string you want to search # # for) # # # # You must have access to Perl 5 and be able to run a cgi application. # # Program might require minor modifications in order to get it to compile # # on your platform. # ############################################################################# # This program is free software; you can redistribute it and/or # # modify it under the terms of the GNU General Public License # # as published by the Free Software Foundation; either version 2 # # of the License, or (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the Free Software # # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ############################################################################# Installation ==================================================== If you are comfortable with Perl, here's some instructions that should get the script up and running quickly. 1. Unzip the distribution and you should see two directories cgi-bin and pages. Upload everything in cgi-bin in ASCII mode to a directory on your server that can run cgi and place the files in the html directory so they can viewed from the internet. /html - User html like index.html, searchani.gif. /cgi-bin - search program. 2. Double check that the Path to perl is correct. SearchWWW defaults with #!/usr/bin/perl If this is incorrect, you'll need to edit the first line the searchwww.cgi program, and change it to where you have Perl version 5 installed. 3. Edit searchwww.cgi @referers allows forms located only on servers which are defined in this field to use the searchwww.cgi. @referers = ('http://www.yourdomain.net'); 4. Set file permissions: chmod 755 (-rwxr-xr-x) on .cgi files. chmod 644 (-rw-r--r--) on all files in the html directory. ====================================================