Please read these instructions carefully:

Requirements:

- A server running PHP v4.3 or higher. Some of the syntax will NOT work on earlier versions. PHP5 is recommended.
- A MySQL database to hold the script tables.
- A FTP (File Transfer Protocol) client to upload the files to your web server. Filezilla is recommended.
   (Uploading PHP files via a server control panel is not recommended_
- A simple text editor to make config changes to the PHP files. Notepad will be fine.

Auto Install:

1 => Create a database to hold the script tables. If you are unsure of this procedure contact your web hosting company.

2 => Open up the 'inc/connect.inc.php' file in a text editor and edit it to point to the database you just created. Also, update the cookie name and secret key.

3 => Open up the 'admin/control/defined.inc.php' file in a text editor and set a username and password for your admin area.

4 => Upload all the files/folders into a directory on your web server. Example: /search/

5 => Access the 'install/index.html' file in your browser and follow the set up instructions to complete installation.

6 => If the setup was successful log in to your admin area and select 'Settings' from the menu. Update the settings to your own preferences.

7 => Add a search box (see script usage below) to a page on your site and update the search templates if you want to.

8 => Thats it, all done. For script usage, see below.

SECURITY NOTE: For extra security you should rename your 'admin' folder to something unique!!

Manual Install:

1 => Create a database to hold the script tables. If you are unsure of this procedure contact your web hosting company.

2 => Access the database you just created and run the 'docs/schematic/tables.sql' file.

3 => Open up the 'inc/connect.inc.php' file in a text editor and edit it to point to the database you just created. Also, update the cookie name and secret key.

4 => Open up the 'admin/control/defined.inc.php' file in a text editor and set a username and password for your admin area.

5 => Upload all the files/folders into a directory on your web server. Example: /search/

6 => Log in to your admin area and select 'Settings' from the menu. Update the settings to your own preferences.

7 => Add a search box (see script usage below) to a page on your site and update the search template if you want to.

8 => Thats it, all done. For script usage, see below.

SECURITY NOTE: For extra security you should rename your 'admin' folder to something unique!!

Script Usage:

1 => Click the 'Search Pages' link in your admin area.

2 => To add a new page, specify a title for your page, plus a description, url and some keywords or keyword phrases.

3 => The search engine searches title, description and keywords fields using the MySQL FULLTEXT system. If you have used a word in your title it is probably not necessary to specify it again in your keywords. The more additional keywords you specify the better chance your visitors have of finding the correct pages. If you update your pages in the future, make sure you update your keywords.

4 => Repeat the above procedure for as many pages as you want. Manage your current pages from the same page in your admin area. Click a page title to edit it or use the checkboxes to delete.

For quickness you may want to use the HTML import tool. Click the link above for more information.

Adding a Search box to your pages:

To install the search box on your web pages, click 'HTML Code' in the admin area and copy and paste the code into your own HTML code. If you know a little HTML you can edit the code. It is important that the search path is to the 'search.php' file. Example:

<form method="get" action="http://www.yoursite.com/search/search.php">
<input type="text" name="q" /><br />
<input type="submit" value="Search" />
</form>

The form method MUST be 'get'. 'post' will not work. Use the FULL url to your 'search.php' file. If you are using the form inside a frame, you may need to add a target frame attribute to the form tag:

<form target="body" method="get" action="http://www.yoursite.com/search/search.php">

Where 'body' is your frame name.

How to Style the search box:

There are 2 ways you can style the boxes. Either in your stylesheet or via inline style attributes. If you are styling via your stylesheet, you may wish to wrap the search box in a div to prevent style attributes effecting other areas of your page. You then add styling to elements in this div only.

For example, lets say you want to apply a black font color to the input elements. If you apply the following it will globally effect all your site:

input {
color:#000;
}

However, if you wrap your search box in a div (lets call it 'searchWrapper') and apply elements to that div only, it will effect elements ONLY in that div wrapper. Providing of course a global statement doesn`t follow!

#searchWrapper input {
color:#000;
}

Inline style elements can be applied directly to the HTML code. Here`s an example of the same previous code applied inline to the form box:

<input type="text" name="q" style="color:#000" /><br />

Templates:

The search templates are in the 'templates' folder. Any additional html can be found in the 'templates/html' folder. You should be careful when editing, not to remove PHP code from the 'search.tpl.php' template or braces (code between{}) in the .htm files.

All style/color elements are in the 'templates/style.css' file.

All language is in the 'lang/english.php' file.

Search Engine Skip Words:

The search engine can skip common words for a more detailed search. You can add or remove these words in your admin area. Click 'Settings', then enter the skipwords in the box provided.