According to Brian Paulson:
> I am working on this exact same thing at the moment.
>
> I was getting the same error message until I added a ./ to htsearch.sh
>
> $title = "Search results";
>
> $HTSEARCH_PROG="./htsearch.sh";
> ^ this made it work.
This is unrelated to the other problems that were reported. The ./ makes
it work because "." is not normally part of your PATH, so the shell doesn't
look in the current directory for commands unless you explicitly tell it
to. Michael was using a fully qualified pathname for the command, so this
isn't an issue for him.
> if (!isset($words)) {
> $words = EscapeShellCmd(UrlEncode($search));
> }
> $config = $config;
> $format = $config;
OK, so you set $config to $config, but what was $config set to originally?
Why are you also setting $format to $config? They are not generally the
same values.
> if (!isset($page)) {
> $page = 1;
> }
> $query =
> "config=$config&method=$method&format=$config&words=$words&page=$page";
> $command="$HTSEARCH_PROG \"$query\"";
>
>
>
> Now I am getting to htsearch ok but now I am getting the error
>
> Showing results -
> ht://Dig error
>
> The error message is:
>
> (Unable to read word database file '/home/htdig/db/db.words.db'% match)
> ^ for some reason the
> /weekly/ dir is not being inserted
> in
> my conf dir I have the database_dir listed as
>
> /home/htdig/db/weekly/
>
> Any one have any ideas?
Probably because htsearch is not reading the config file you want it to
be reading. I'd guess it's looking at another file, based on whatever
$config is. Maybe it's falling back to the compiled in default config
file name, or it's using the compiled in value for database_dir.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html