According to Benji Spencer: > I have a situation where I am using HTDig from a PHP script (using the > typical means which is access able several places on the internet. However, > from some of the configs of, it is returning only the number of results > that where found, but never the actual results. What would be causing this? > > Here is an example: > /web/search-em/search.sh > "config=5AADFEF606E14D1495F87DB1BA704ADE&format=test&words=bob" > Content-type: text/html > > 74 > 1 > 10 > (bob or bobs)
See http://www.htdig.org/FAQ.html#q5.11 for the two leading causes of this problem. Given that you're using custom templates, I'd suggest the problem is likely with the names, locations or permissions of some of these template files. > /web/search-em/search.sh: > #!/bin/sh > HTBINDIR=/opt/search/oxcyon > QUERY_STRING="$@" > REQUEST_METHOD=GET > export QUERY_STRING REQUEST_METHOD > $HTBINDIR/htsearch You shouldn't need this wrapper script if you're running the latest version of htdig (3.1.6). As of 3.1.5, htsearch can be given a query string right on the command line, so PHP scripts can call htsearch directly. -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/ Dept. Physiology, U. of Manitoba Winnipeg, MB R3E 3J7 (Canada) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ 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

