///////////////////////////////////////////////////// // // // 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
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!
$user = "Bob"; $pass = "Bill123";
EG: $file_root = "c:\\html"; $file_root = "/home/user/public_html";
EG: $http_root = "http://127.0.0.1";
EG: $index_file = "c:\\html\\search\\search_index.dat"; $index_file = "/home/user/public_html/search/search_index.dat";
EG: $exclude_words = "c:\\html\\search\\exclude_words.txt"; $exclude_words = "/home/user/public_html/search/exclude_words.txt";
EG: $exclude_files = "c:\\html\\search\\exclude_files.txt"; $exclude_files = "/home/user/public_html/search/exclude_files.txt";
chmod 777 search_index.dat
<meta name="keywords" content="keyword1, keyword2, keyword3">
<script language="Javascript"> <!-- Javascript inside comments! --> </script>
- Title of Page - http://www.whatever.com/ The first few lines of the page...Please note the change from previous versions. Metatags are no longer used in search results.
http://path.to/script/search.php?index(Note the "?index")
<form action="search.php" method="post"> <br><input type="text" name="query" value="Search for..."> <br><input type="submit" value="Search"> </form>