According to Gilles Detillieux:
>According to Torsten Neuer:
>> When called from command line, htsearch defaults to interactive
>> mode.  If used in a PHP wrapper, one has to call htsearch via
>> a shell script that sets REQUEST_METHOD and QUERY_STRING (the
>> putenv() function of PHP does not work with exec()).
>> 
>> The attached patch to htsearch.cc significantly speeds up the
>> search from within wrappers (such as the PHP wrapper in the
>> contrib section) by setting REQUEST_METHOD to "GET" and
>> QUERY_STRING to the value of av[optind] if (optind < ac)
>> after the options have been processed.
>
>I really like the idea, but I question how portable the setenv() function
>call is.  I've seen some systems with it, but a lot of others use putenv()
>instead, which take one argument only.  I'll implement a variation of this
>that passes the argument directly to the cgi() constructor, to avoid the
>problem of how to fudge up the environment variables.

Yep, it was just a quick hack to get rid of an additional shell script.
If you are putting this in the cgi constructor - great.  Will safe me
some time to mess around with other things ,-)


cheers,
  Torsten

--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstra�e 14                            Tel: +49-4101-403605
D-25474 Ellerbek                            Fax: +49-4101-403606
E-Mail: [EMAIL PROTECTED]            Internet: http://www.inwise.de

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to