Subject: [htdig3-dev] HtDig & Cobalt RaQ
From: David Sexton (david.sexton@sapphire.net)
Date: Wed Nov 10 1999 - 00:53:42 PST
Hi,
I have got htdig compiled, installed and generally working on a Cobalt
RaQ2. Unfortunately, I'm having one small problem.
I would like to use seperate databases & htdig.conf files for different
sites on the machine. I thought I could do this by embedding a 'config'
parameter in the form that is sent to htsearch. When I do this, though,
the string ' htdig.conf' is appended to the name. In an attempt to find
the problem, I have changed htsearch.cc to the following:-
--------------------------
//
// htsearch.cc
//
#include "htsearch.h"
#include "cgi.h"
#include <time.h>
#include <ctype.h>
#include <signal.h>
//*****************************************************************************
// int main()
//
int
main(int ac, char **av)
{
//
// Parse the CGI parameters.
//
cgi input;
printf ("Content-Type: text/plain\n\n");
printf ("input config : %s\n", input["config"]);
printf ("input words : %s\n", input["words"]);
exit(0);
}
--------------------------------------
I have not touched any other files. When a modified version of the
example search page to include :
<INPUT type="hidden" name="config" value="test">
I get back :
input config : testhtdig
input words : Search String
Does anyone have any ideaswhere I should look next (I don't
particularly want to hear 'in cgi.cc' - that file is scary!).
Thanks for any help,
Dave
-- David SextonNetwork Technician Sapphire Technologies Ltd. Tel: +44 (0) 1642 702100 Fax: +44 (0) 1642 702119
----------------------------------------------- Any opinions expressed in this message are those of the individual and not necessarily the company. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this message in error and that any use is strictly prohibited.
Sapphire Internet http://www.sapphire.net
------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2b25 : Wed Nov 10 1999 - 01:06:43 PST