We have an intranet with multiple links to word documents. Because access to
some of the documents needs to be restricted, we're using PHP to
authenticate users prior to delivering the document to the client. As a
result, links to the Word documents are NOT of type
http://intranet.yourcompany.com/msword_document.doc but rather
http://intranet.yourcompany.com/view_doc.php?docid=1234

When the server recieves the request, if the user is authenticated, the PHP
code sends an http header of "Content-Type: application/msword" along with a
header "Content-Disposition: attachment filename=url_encoded_filename.doc"

My question is, is this sufficient to invoke the msword->text translator
used in conv_doc.pl or is the fact that the request is for a document with a
.php extension going to confuse htdig?

Also, when running rundig, we are passing the -a option so that we can allow
users to keep searching while the dig is in progress. However we've noticed
that once the dig finishes, the old database and such are not replaced with
the work files. Can anyone suggest a modification to rundig that would do
this for us if run with the -a option?

Ted Stresen-Reuter
Resources for integrating php with htdig:
http://dev.susansexton.com/htdig (the system I wrote and use)
http://phpclasses.websapp.com/browse.html/package/26.html (a very similar
option written by Manuel Lemos)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
PC Mods, Computing goodies, cases & more
http://thinkgeek.com/sf
_______________________________________________
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

Reply via email to