This search gateway will perform simple searching capabilities on your website. This page will explain how to get the simple search program working on your website.
- How do I install this script for my Web?
- Where do the files get installed to?
- What must I do after I have installed the script?
- Can I specify Which directories or files to search?
How do I install this script for use on my Website?
You will need to install this script from your console, located at http://yourdomain.xxx/console
What must I do after I have installed the script?
You will need to make some minor changes to the search.cgi script in your /cgi-bin/search directory.
$baseurl is exactly what it sounds like, the base url you want to perform the search on. This should be set to your domain name.
$baseurl = 'http://YOURDOMAIN.com';
@files is an array containing the directories and or files you wish to search, for instance if you would like to search a directory called iqs in your htdocs directory it would look like the example below.
@files = ('iqs/');
$title should be your domain name
$title = "Your Domain Name";
$title_url This should be the URL address of your domain, most likely the same as the $baseurl
$title_url = 'http://YOURDOMAIN.com';
$search_url This should point back to the page you performed the search from.
$search_url = 'http://YOURDOMAIN.com/search/search.html'
Can I specify Which directories or files to search?
Yes you can specify which files or directories to search in the @files array variable like this:
@files = ('*.shtml','demos/links/*.html','demos/guest/*.html');
this would search for all files ending in .shtml inall directories and for all .html files in demos/links and demos/guest
Where do the files get installed to?
The script itself gets installed to /htdocs/cgi-bin/msasearch
The page to perform the search from gets installed into /htdocs
Here's some HTML code that you can copy and paste into your site to provide a search.
Here's what the above HTML code will look like when pasted into your page.
If you have problems setting up this program, please send email to help@webstorage.com with the following info:
- Your account name (or domain name)
- The page in your account that contains the broken search.
© 1997-1999 Internet Quality Services Corporation. All rights reserved.