Fast and relatively easy:
http://phpclasses.spunge.org/goto/browse.html/package/26.html

Apache hands the request off to htsearch, which then provides the response to the client. Once htsearch has the request, there is no opportunity for PHP to get involved (since Apache would have to "hand the request off" to PHP first). However, since PHP can make system calls and since htsearch can be run from the command line, just ask PHP to manage the search - the request and the response (and that's what the class above does: a PHP "abstraction" of htsearch).

Ted Stresen-Reuter

On Thursday, September 18, 2003, at 02:59 PM, Quag7 wrote:

Hi.

I have htdig running and I like it a lot but I can't figure out how to
log search queries to a file.  The idea here is to look at the queries
and improve the search results through a variety of means.

I am mainly concerned with queries that turn up zero hits.  The most
obvious thing, it seemed, was to modify the nomatch.html file to write
the queries to a file.

Since turning on PHP parsing of .html files is not practical on my site,
I began looking for ways of making the nothing_found_file a PHP file. I
have had no luck; while I can set this in the conf file to a .php file,
the file will not parse as PHP (it dumps it as HTML; I can view the PHP
source in my browser).


Does anyone have a workaround for this?

--
[EMAIL PROTECTED] * ICQ#13365630
http://www.frostwarning.com/~quag7
#jiggyweek (irc.sorcery.net) * Uptime: [ ~1.3 billion ] years



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ ht://Dig general mailing list: <[EMAIL PROTECTED]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to