Current location: Hot Scripts Forums » HotScripts.com Discussion » General HotScripts Site Discussion » Hep with Simple Search script


Hep with Simple Search script

Reply
  #1 (permalink)  
Old 06-30-04, 03:31 PM
pentatonic145 pentatonic145 is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hep with Simple Search script

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql/php search script dawggy505 PHP 1 06-22-04 07:49 AM
need simple /news/blog/journal script, with search engine westrikefirst. Script Requests 2 05-21-04 03:05 AM
Simple search script niceguyonline Script Requests 3 03-08-04 12:09 AM
Declared Functions skipper23 PHP 4 12-17-03 11:06 AM
index page not showing up skipper23 PHP 3 12-15-03 02:10 PM


All times are GMT -5. The time now is 10:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.