According to Joseph Cheek:
> unforch, SCRIPT_NAME is already /results.php inside the php wrapper.  it appears to
> me, since i am calling htsearch as a cgi script from inside the wrapper, that
> SCRIPT_NAME gets reset to /cgi-bin/htsearch by apache for the scope of htsearch.
> 
> thoughts?

How about yet another wrapper around htsearch?  E.g.:

#!/bin/sh
exec SCRIPT_NAME=/results.php "$0".real ${@+"$@"}


> Gilles Detillieux wrote:
> > According to Joseph Cheek:
> > > i have htdig 3.1.1 installed, and a wrapper [php] file that surrounds the
> > > search results, in order to give me dynamic content around the search results.
> > > it works *great*, except for one small thing: the page 1, 2, 3, etc. at the
> > > bottom of the search results link to /cgi-bin/htsearch instead of my
> > > /results.php wrapper.  is there any quick way to change this?  a perusal of
> > > the htdig.org web site and the config file docs didn't turn up anything that
> > > looks like it would work.
> >
> > The URIs in PREVPAGE, NEXTPAGE and PAGELIST are all created from the
> > environment variable SCRIPT_NAME, which in typical installations has the
> > value /cgi-bin/htsearch.  You'd need to change this variable in your PHP
> > code, before it calls htsearch.


-- 
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 htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to