Hi all,

I wondered if anyone could shed any light on the following attempt to call
ht://Dig through PHP. It returns with 0 results and an error of -2 (htsearch
execution error). This was adapted from Torsten Neuer's htseach class
script:

 exec("/home/www/cgibin/htsearch\"".
           "config=keywords&".
           "words=".EscapeShellCmd(UrlEncode($queryKeywords))."&".
           "keywords=".EscapeShellCmd(UrlEncode($keywords))."&".
           "page=".((string)$pageValue)."&".
           "sort=score&".
           "format=long&".
           "method=boolean&".
           "matchesperpage=5&".
           "restrict=".$this->getRestrictPattern()."\"",
           &$this->results);

It looks to be OK, but I wondered if someone else might have a take on this?

Huge TIA,

Phil.

NoHo Digital
Floor 2, Canberra House
315-317 Regent St
London W1R 7YB

phone:  44(0)207 299 3414
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.

Reply via email to