|
|||||
Perl Studio for Windows 95/98/2000/NTPerl Studio psSiteSearch
These scripts are included with the Perl Studio member subscription. Perl Studio psSiteSearch demo: Installing Perl Studio psSiteSearch scripts , DBI::SQL version Unzip the site_search.zip archive file on your local hard drive. Change the first line of the scripts to point to the correct path for perl version 5 or greater on your server. The default perl path in the scripts is #!/usr/local/bin/perl
(note: The script files params.cgi and search_lib.cgi do not need a perl path tag.) Upload all the script files into your cgi-bin directory.Create a 'template' directory under your public_html directory. Upload the search_print.html and search_template.html into the template directory. The search_print.html file is used to print database records by the admin script. Modify the search_template.html file to reflect your web site design. Edit the form action tag to point to the search.cgi script file on your server. The search template displays the search results by replacing the hidden html tag with the search results returned by the search.cgi script file. Hidden html tag: <!--insert_search_results_here--> Copy and paste the form search contents in the search.html file into one of your html files to allow vistors to your site to seach your site. Edit the form action tag to point to the search.cgi script file on your server. Next, make sure the files and directories have the correct permissions. Script file permissions should be 755. User Modifications The following lines from the params.cgi file define the location of important files and database parameters. These lines must be modified before running the scripts: Required Modifications that need to be set before you use the site search scripts Access to your DBI::SQL Database will require that you supply your userid and password Access to your DBI::SQL Database will require that you supply the name of your database, The name of the database driver your using. It can be mysql or any DBI:DBD driver The URL to the database server, usually localhost, if the database server is on the same machine. Edit the $root_dir variable that the search_index.cgi script file starts the keyword index search in.
Edit the $rootURL variable that the search_index.cgi script file uses to apprend to the list of files that are returned by the search_index.cgi script file.
Edit the @file_types array variable to reflect the types of files the search_index.cgi script file should search.
Edit the @dont_search_dir array variable, to reflect the directories that are not searched by the search_index.cgi script file.
First run the search_create.cgi script to create your new site search database table.
|