|
|
Configuring the Search ScriptThe below should be configured in the script using a UNIX compatible editor ie PFE. See the README file for more details. $basedir = '/home/pub/www/www.mydomain.com/'; This is the full path to your home directory or a sub directory of your home directory that you wish to search - if you are on ws1 the www.mydomain.com will be replaced by your directory name - on ws2 - 4 it will be your domain name. Take a look at the secure server pages to find out which server you are on. $baseurl = 'http://www.mydomain.com/'; This is the base url that corresponds with the above path - it could be your domain, or a domain plus a directory. @files = ('*.html','demos/links/*.html','demos/guest/*.html'); This is a list of directories and files you want to search, */ will search all sub directories */*/ will search all sub directories of those directories *.shtml will search all shtml files in the current directory etc. $title = "My Web Site"; The title of the material that you are searching $title_url = 'http://www.mydomain.com/'; The url of the page that you want to link back to from the search page - will be given the above title $search_url = 'http://www.mydomain.com/search/search.html'; The url of the search page itself. |
|
![]()
You will now need to place your html file search.html in the location specified in the script. You will have to alter the line which calls the script in the html so that it calls it from your directory. You may alter the format and style of this page if you wish, but you must leave the basic search parts the same. Why not take a look at the script in action
![]()
![]()