I'm having some problems with wrappers for htsearch too. I want to build a
PHP wrapper object that reads in the keywords selected by the user to
assemble a single keywords string (keywords=x+y+z) and then pass that to
htsearch and read the results by creating a new script which parses those
results and puts them into the format we require.
To test this sort of functionality I used a wrapper script similar to that
published to this list:
#!/bin/sh
QUERY_STRING="config=phil3&keywords=northamerica&format=long&words=sample"
REQUEST_METHOD=POST
export QUERY_STRING REQEST_METHOD
/home/www/cgibin/htsearch -vv
All I get from this is a prompt for "words" and "format" as usual when run
from the command line. Trying a similar approach to the above, but with the
QUERY_STRING removed "cat $1 | /path/htsearch etc." still doesn't produce
anything useful.
What I'd like to do ultimately is call a method in my PHP wrapper class
(something like wrapper->htsearch($type,$searchwords)) to make a call to
htsearch with some given parameters... Is this possible or am I mad for even
contemplating it?
Thanks in advance,
Phil Coates
NoHo Digital
Floor 2, Canberra House
315-317 Regent St
London W1R 7YB
phone: 44(0)207 299 3425
mobile: 44(0)7711 818 384
email: [EMAIL PROTECTED]
http: www.noho.co.uk
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word unsubscribe in
the SUBJECT of the message.