On Thu, 11 Jul 2002, Ted Stresen-Reuter wrote:

> 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?

A Content-Type: header is used to determine file type for htdig. No part
of the URL is consulted, unless you're indexing a local file (i.e. there
wouldn't be any MIME information sent by a server or CGI.)

So yes, you'll be fine.

> 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

Right. You want to do something like my rundig.sh script:
<http://www.htdig.org/files/contrib/scripts/>

--
-Geoff Hutchison
Williams Students Online
http://wso.williams.edu/



-------------------------------------------------------
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