Solved.

-----Original Message-----
From: Philip Coates <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Thursday, November 11, 1999 1:02 PM
Subject: [PHP3] Command-line ht://Dig/php exec...


>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
>
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to [EMAIL PROTECTED]
>To subscribe to the digest, e-mail: [EMAIL PROTECTED]
>To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


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