Re: [htdig] Command-line ht://Dig/php exec...


Subject: Re: [htdig] Command-line ht://Dig/php exec...
From: Philip Coates (philc@noho.co.uk)
Date: Thu Nov 11 1999 - 08:26:03 PST


Solved

-----Original Message-----
From: Philip Coates <philc@noho.co.uk>
To: htdig@htdig.org <htdig@htdig.org>
Date: Thursday, November 11, 1999 1:04 PM
Subject: [htdig] 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: philc@noho.co.uk
>http: www.noho.co.uk
>
>
>
>------------------------------------
>To unsubscribe from the htdig mailing list, send a message to
>htdig@htdig.org containing the single word unsubscribe in
>the SUBJECT of the message.
>

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig@htdig.org containing the single word unsubscribe in
the SUBJECT of the message.



This archive was generated by hypermail 2b25 : Thu Nov 11 1999 - 09:50:50 PST