According to Dan Langille:
> > The work in progress is available at:
> > http://diary.unixathome.org/htdig/results.php
>
> I've made some progress. See the code at
> http://diary.unixathome.org/htdig/results.php.txt
>
> The next step is to take the incoming parameters from
> $QUERY_STRING, split them, and feed them into the call to htdig.sh
> (see #2 listed below).
>
> > If you search on 'langille', you'll get two pages of results. If you examine
> > the URLS provided for the (2) link, you'll find:
> >
> > http://diary.unixathome.org/htdig/?config=htdig;format=htdig;words=langil
> > le;page=2
> >
> > As I see it, there are two problems to solve:
> >
> > 1 - get the correct URL in there. It should be
> > http://diary.unixathome.org/htdig/results.php
>
> This has been done.
I assume you discovered the "script_name" attribute. It was added
specifically for supporting PHP wrappers around htsearch.
> > 2 - parse the arguments
> > "?config=htdig;format=htdig;words=langille;page=2" into something php
> > can use.
>
> Anyone want to try this? I'm off to bed.
Hope you had a good sleep. I'm not sure, but I though someone on the list
once mentioned that the latest version of PHP does support parsing query
strings that use a semicolon as separator. (Maybe I'm confusing this with
the latest version of the Perl CGI library.) HTML 4.0 does not allow bare
ampersands in query strings within URIs in an HTML document, and they
recommend the use of the semicolon instead. So, any CGI program or code
that parses query strings should now allow both, and use the semicolon
when constructing a URI.
See http://www.htdig.org/FAQ.html#q5.21
and http://www.htdig.org/FAQ.html#q4.13
--
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
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html