Search Engine 01
[ Simple Search ] [ Power Search ]

  Description
Powerful file search script. Searching for a word or phrase will
return all file names which contain that string. Use exact phrase,
or booleans AND and OR. Control what type of files and which 
directories to be searchable. Choose how many records to be returned. 

  Files
index.html    - this file;
search.pl     - the script itself;
search.conf   - the configuration file;
demo1.html    - sample file for simple searching;
demo2.html    - sample file for power searching;
/images       - directory, contains search icons;
/subdir       - directory, contains sample searchable files

  Instalation
Open 'search.conf'. Change the following:
$basedir  - the server path to the directory which contains files
            or directories you want to be searched;
$baseurl  - the full URL of the directory which contains files
            or directories you want to be searched;
@files    - the actual files or directories to be searched, you can
            use *.* for all files to be searched or you can use *.html,
            *.jpg, *.zip to define type of the searchable files;
$icon_src - the full URL location of search icons;
$title    - the title of your returned page;
$body     - the body tags of your returned page;
$font     - the font to be used for your returned page 

Open 'demo1' and 'demo2'. 
Change the 'form action' to point to your script location. 
Do NOT change anything else, otherwise the script won't work!

  Permissions
search.pl    - 755 
search.conf  - 755 

  How to call
Copy the form from 'demo1.html' or 'demo2.html' and paste it wherever you 
want. Once the script is installed, you can have as many forms as you 
want anywhere on your pages. 

  Using
The sample searchable files are set with different file extensions to
show all possibilities of the script. Try searchnig for e - all
file names contain that letter. Choose to display 10 or 20 records. 
Play with 'search.conf' - put as '@files' *.html or *.txt to limit the 
searching. Select boolean OR and search for 'html conf'.