home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
PPPBCKP
/
NS11.ZIP
/
SEARCH.ZIP
/
SEARCH.TXT
< prev
next >
Wrap
Text File
|
1995-09-12
|
3KB
|
107 lines
NetXpress Server Copyright (c) 1995 Merlin Systems Inc.
Utility: CGI Search
Purpose: Searches through files for keywords and returns URLs to those files.
Syntax: search [-B<base_directory>] [-D<directory>] [-SUB] [-TITLE] [-?]
[<file_extension> ..]
Where: [-B<base_directory>] is your NetXpress Server's web base directory.
[-D<directory>] is the starting directory relative to the base
directory. If the search is to start at the base directory, then
you need not include this parameter.
[-SUB] includes subdirectories in the search.
[-TITLE] will display the Title's of the documents instead of their
location.
[-?] returns help
[<file_extension>] if the allowable file extension to search through.
You may have up to 32 different file extensions, but they must be
the last parameters. If you wish to search through all files,
leave this parameter blank.
Operation:
1. Add an 'exec' statement to you NETSRV.WWW configuration file.
eg. exec search.htm \netsrv\search0.bat
This notifies the NetXpress Server that all requests for
'search.htm' are really to be sent to the NXCGI Server so that it
can execute '\netsrv\search0.bat'.
2. Make sure that the both the NetXpress Server web server and the
CGI server is in operation.
3. Point to the search form 'srchform.htm' from another document so
that the user may perform the search.
Example Search Form:
<html>
<head>
<title>
Search Form
</title>
</head>
<body>
<FORM METHOD=GET ACTION="search.htm" METHOD=GET>
Search for?<p>
<INPUT TYPE="TEXT" NAME="KEY">
<INPUT TYPE="SUBMIT" VALUE="SUBMIT">
</FORM>
</body>
</html>
NOTE: The name of the TEXT form does not matter to the search.exe
software.
The search.exe software will handle either a GET or POST method.
Example SEARCH0.BAT File:
@echo off
type \netsrv\srch_hdr.htm
\netsrv\search.exe -b\netsrv\www -s -t htm txt
type \netsrv\srch_fot.htm
NOTE: The srch_hdr.htm and the srch_fot.htm files are only used for
esthetics.
Example SRCH_HDR.HTM File:
Content-Type: text/html
<html>
<head>
<title>
Search Results
</title>
</head>
<body>
<h1>Search Results</h1>
<hr>
<ul>
NOTE: Please note the first line is a HTTP header. It must always be
present!
Example: SRCH_FOT.HTM File:
</ul>
<hr>
<i>
© 1995 Merlin Systems Inc.
</i>
</body>
</html>
==============================================================================
Merlin Systems Inc.
http://www.merlinsys.com