/////////////////////////////////////////////////////
//                                                 //
//           P H P S i t e S e a r c h             //
//                 Version 1.7.7                   //
//                                                 //
//                 Copyright 2001                  //
//                  David Broker                   //
//                php@warpedweb.net                //
//              All Rights Reserved                //
//                                                 //
//          In using this script you               //
//           agree to the following:               //
//                                                 //
//      This script may be used and modified       //
//              freely as long as this             //
//             copyright remains intact.           //
//                                                 //
//     You may not distibute this script, or       //
//           any modifications of it.              //
//                                                 //
//   A link must be provided on the website that   //
//             uses the script to:                 //
//          http://php.warpedweb.net/              //
//                                                 //
//      Any breaches of these conditions           //
//        will result in legal action.             //
//                                                 //
//      This script is distributed with            //
//        no warranty, free of charge.             //
//                                                 //
/////////////////////////////////////////////////////
Readme File for PHPSiteSearch Version 1.7.7

Contents:

About

A site indexer and search script for small to medium sites.
The indexer goes through your site and indexes it from either meta-tags or all words into a text database.
The search script then performs searches on that database.

PHPSiteSearch2.0, which is currently under development will include multi-database support, multiple languages, and much more!

Included Files

Here is a list of files that should be included in this distribution:
  1. readme.txt
    This file.
  2. search.php
    The script that does the searching & indexing.
  3. search_index.dat
    The text file where the index database will be stored.
  4. exclude_words.txt
    A list of words NOT to be indexed (and, the, or).
  5. exclude_files.txt
    A list of files not to be index.

Installation

  1. Requirements:
  2. Configure the scripts:
    Open search.php in a text editor:
    1. Set the username and passowrd.
      $user = "Bob";
      $pass = "Bill123";
    2. Full server path to files (DO NOT include trailing slashes). If using Window make sure to use double back slashes for server paths.
      EG:  $file_root = "c:\\html";
           $file_root = "/home/user/public_html";
    3. Equivilent URL of the above path (DO NOT include trailing slashes).
      EG:  $http_root = "http://127.0.0.1";
    4. Full server path to the index file:
      EG:  $index_file = "c:\\html\\search\\search_index.dat";
           $index_file = "/home/user/public_html/search/search_index.dat";
    5. Full server path to the file list of words not to index.
      EG:  $exclude_words = "c:\\html\\search\\exclude_words.txt";
           $exclude_words = "/home/user/public_html/search/exclude_words.txt";
    6. Full server path to the file list of words not to index.
      EG:  $exclude_files = "c:\\html\\search\\exclude_files.txt";
           $exclude_files = "/home/user/public_html/search/exclude_files.txt";
  3. Installing the Scripts:
  4. Preparing Your Site:
  5. Indexing:
  6. Searching: That's all there is to it!
    If you find you have any troubles try to uncomment the "DEFINE("DEBUG", true); line in the configuration.
    It will give you a detailed description of your configuration and any problems.