Quick Start

The simplest installation

Upload

Upload the whole ls folder to your website

Configure

Open the livesearch.class.php and define your settings, next to each variable you'll find helpful information (as in the manual page too). The most important variable is the $baseurl.

The Search Form
Either you have an already existing search form (maybe in the header) or you like to add a new form - both is quite simple.
Only need is to set the action (i.e. search.php = Search results page) for the form and name the search query field (i.e. q).
Minimum specifications for such a searchform
<form method="post" action="search.php">
  <input type="text" name="q">
  <input type="submit">
</form>
The Search Results Page
in our example we use search.php.
You can either use a complete new page or just make a copy of your existing pages (or page output), call it search.php and adapt it fulfill minimum requirements - so you can keep the layout of your page and the results are embedded.
Minimum Requirements on the Search Results Page
Include the LiveSearch file and initiate the class anywhere at the top of the page, anywhere at the page, where you like to display the search results start Searching and display the results.
<?php
  include("ls/livesearch.class.php");
  $LiveSearch = new LiveSearch();
?>
  ...
  <?php
  $LiveSearch->search($_REQUEST["q"],$_REQUEST["p"]);
  echo "<p>" . $LiveSearch->drawSearchresults() . "</p>";
?>
..
The drawSearchresults() method just display all the results preformated and showing the pagination if needed, you can either modify the method directly in th class or use the other variables to display the results in your own way.
<?php
  include("ls/livesearch.class.php");
  $LiveSearch = new LiveSearch();
?>
  ...
  <?php
  $search_results = $LiveSearch->search($_REQUEST["q"],$_REQUEST["p"]);
  echo "Found: " . $LiveSearch->searchcount;
  echo "Pages: " . $LiveSearch->pages;
  echo "Current Page: " . $LiveSearch->p;
  echo "<pre><b>Search Results</b><code>" .
  print_r($search_results,true) . "</code><pre>";
?>
..

Some Hints
Take a look to the search.php of the demo folder to see a working example with the livesearch CSS.
After you performed your first search successfull you should at least temporary disable or increase the $cachetime when styling your search results page - so you don't loose needless time on re-caching.