Re: [htdig3-dev] PHP support?


Torsten Neuer (tneuer@inwise.de)
Fri, 28 May 1999 09:19:28 +0200


According to Daevid Vincent:
>I would love it if I could tell ht:Dig in the htdig.conf file what extensions to use
>for the header and footer pages.
>
>We use PHP3 for the pages on our site, and therefore include a standard header and
>footer (wrapper if you will) around them all.
>
>It seems that if the config file had a parameter that asked me what the extension is
>ht:Dig should use for the /var/lib/htdig/common/*.html files, I could do this right?
>

If you're using PHP, you can do a lot more with ht://Dig than through
sticking with the default wrappers. I uploaded a basic wrapper class
some time ago should be in the contrib directory of ftp.htdig.org now
(htsearch-0.1.1.tar.gz) which you could use as a starting point for
your wrappers.

The trick is basically done by just putting the information you need
to process data in the default wrappers (i.e. number of results etc).
Then you can use PHP to dump (and post-process if neccessary) the re-
sults while sticking with the overall layout of the code of your site.
No need to maintain different files for that ,-)

hth,
  Torsten

--
InWise - Wirtschaftlich-Wissenschaftlicher Internet Service GmbH
Waldhofstraße 14                            Tel: +49-4101-403605
D-25474 Ellerbek                            Fax: +49-4101-403606
E-Mail: info@inwise.de            Internet: http://www.inwise.de

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



This archive was generated by hypermail 2.0b3 on Thu May 27 1999 - 23:39:27 PDT