Hi all. I am at a loss as to what I am doing wrong trying to run this script on my website,
www.evalserv.com
Here's the part I don't get:
$DEBUGGING = 1;
$basedir = '/usr/local/apache/htdocs';
$baseurl = 'http://localhost/';
@files = ('*.html','*/*.html');
$title = "NMS Search Program";
$title_url = 'http://cgi-nms.sourceforge.net';
$search_url = 'http://localhost/search.html';
@blocked = ();
$emulate_matts_code = 1;
$style = '';
$charset = 'iso-8859-1';
What am I supposed to put in $basedir and $baseurl?
Here's what the readme says (I got this script from NMS - it's a modded script from Matt's scriptarchive.com):
$basedir
This is the base directory (where each search will start);
hence it should encompass everything you want searched.
Files and directories you want blocked from the search should
be placed in the @blocked array (described below); everything
else will be searched. The base directory and all directories
below it (that you want searched) must be world readable and
executable. For example, this variable might be set to
/home/larry/public_html/articles
$baseurl
This is the base URL, which is the URL relative to $basedir
(mentioned above). This variable will be used in generating
links (URLs) relative to the files found containing the text
search for. For example, this variable might be set to
http://www.webhost.com/~larry/articles
what's this "home/larry/...." business?
Any help would be much appreciated!
I'm just trying to make it so clients can search for MS WORD .doc files located in this directory:
public_html/docs
on my website,
www.evalserv.com which is hosted on a linux server, Surpass Hosting
Thanks 4 looking n helping!