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.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
------------------------------------
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.