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 >
Text File  |  1995-09-12  |  3KB  |  107 lines

  1. NetXpress Server                        Copyright (c) 1995 Merlin Systems Inc.
  2.  
  3.  
  4. Utility: CGI Search
  5.  
  6.  
  7. Purpose: Searches through files for keywords and returns URLs to those files.
  8.  
  9.  
  10. Syntax:  search [-B<base_directory>] [-D<directory>] [-SUB] [-TITLE] [-?]
  11.                 [<file_extension> ..]
  12.  
  13.  
  14. Where: [-B<base_directory>] is your NetXpress Server's web base directory.
  15.        [-D<directory>] is the starting directory relative to the base
  16.            directory.  If the search is to start at the base directory, then
  17.            you need not include this parameter.
  18.        [-SUB] includes subdirectories in the search.
  19.        [-TITLE] will display the Title's of the documents instead of their
  20.            location.
  21.        [-?] returns help
  22.        [<file_extension>] if the allowable file extension to search through.
  23.            You may have up to 32 different file extensions, but they must be
  24.            the last parameters.  If you wish to search through all files,
  25.            leave this parameter blank.
  26.  
  27.  
  28. Operation:
  29.        1. Add an 'exec' statement to you NETSRV.WWW configuration file.
  30.           eg.  exec search.htm \netsrv\search0.bat
  31.           This notifies the NetXpress Server that all requests for
  32.           'search.htm' are really to be sent to the NXCGI Server so that it
  33.           can execute '\netsrv\search0.bat'.
  34.        2. Make sure that the both the NetXpress Server web server and the
  35.           CGI server is in operation.
  36.        3. Point to the search form 'srchform.htm' from another document so
  37.           that the user may perform the search.
  38.  
  39.  
  40. Example Search Form:
  41.  
  42.       <html>
  43.         <head>
  44.           <title>
  45.             Search Form
  46.           </title>
  47.         </head>
  48.         <body>
  49.           <FORM METHOD=GET ACTION="search.htm" METHOD=GET>
  50.             Search for?<p>
  51.             <INPUT TYPE="TEXT" NAME="KEY">
  52.             <INPUT TYPE="SUBMIT" VALUE="SUBMIT">
  53.           </FORM>
  54.         </body>
  55.       </html>
  56.  
  57.       NOTE: The name of the TEXT form does not matter to the search.exe
  58.             software.
  59.             The search.exe software will handle either a GET or POST method.
  60.  
  61.  
  62. Example SEARCH0.BAT File:
  63.  
  64.       @echo off
  65.       type \netsrv\srch_hdr.htm
  66.       \netsrv\search.exe -b\netsrv\www -s -t htm txt
  67.       type \netsrv\srch_fot.htm
  68.  
  69.       NOTE: The srch_hdr.htm and the srch_fot.htm files are only used for
  70.             esthetics.
  71.  
  72.  
  73. Example SRCH_HDR.HTM File:
  74.  
  75.       Content-Type: text/html
  76.  
  77.       <html>
  78.         <head>
  79.           <title>
  80.             Search Results
  81.           </title>
  82.         </head>
  83.         <body>
  84.           <h1>Search Results</h1>
  85.           <hr>
  86.           <ul>
  87.  
  88.       NOTE: Please note the first line is a HTTP header.  It must always be
  89.             present!
  90.  
  91.  
  92. Example: SRCH_FOT.HTM File:
  93.  
  94.           </ul>
  95.           <hr>
  96.           <i>
  97.           © 1995 Merlin Systems Inc.
  98.           </i>
  99.         </body>
  100.       </html>
  101.  
  102.  
  103. ==============================================================================
  104.  
  105.   Merlin Systems Inc.
  106.   http://www.merlinsys.com
  107.