According to "Michael \"NightEye\" Aeberhard":
> I finally got htsearch working with PHP, but it's still not working
> correctly.
> 
> The first problem I'm having is that searches don't always work.  I'll do a
> search, it'll show the results, but then if I try to search again, it will
> show NO MATCHES (even if it's the exact same search).  Is there some kind of
> time configuartion that won't allow searches within a certain amount of time
> or soemthing?  Any ideas?

No, not really, but then I don't know PHP.  I did notice one bit of
strangeness in the config file you posted previously.  Instead of setting
search_results_footer to an empty value, try setting it to /dev/null.
Some systems do wierd things when you try to open an empty string as a
file name.  Probably unrelated to this, but it can't hurt to try.

> The other problem is that I can't run an advanced query.  The only thing
> that works is "words=$words".  But if I try to change it to
> "words=$words&page=$page" where $page may be a 1 or a 2, I always get a NO
> MATCHES.  The funny thing about this is when I run it from the command-line
> with the following: ./htsearch -c
> /home/sites/site21/local/htdig/conf/roguespear.conf words=nato&page=2    <-
> It will DO the search, but STILL show only page 1, and also when the program
> executes int he command line, it shwos that it executed the following only:
> ./htsearch -c /home/sites/site21/local/htdig/conf/roguespear.conf words=nato
> <- doesn't even show the page=2 part.  Any ideas why this is happening?

The shell in intercepting the "&" on the command line because it's not
quoted.  The "&" is a command separator, which means "run the command before
this in the background".

-- 
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

Reply via email to