in reply to how do i open a word doc?

As suggested elsewhere here, let the client (Browser) do the work for you. Easiest way is a link to the file (don't forget to name the file with .doc extension, other wise browsers get confused, mostly) or if you don't want to provide a link (may be you have the file in your database), write the appropriate headers (content-type: application/octet-stream , im not sure on this one though) and print the file to the client (browser)

Replies are listed 'Best First'.
Re^2: how do i open a word doc?
by dorward (Curate) on Mar 03, 2005 at 17:01 UTC

    content-type: application/octet-stream means "Well, uh, its some bytes". Not recomended for Word documents, for which the correct content type is: application/msword.

    Sometimes people use octet-stream to prompt user agents to save the file rather then opening it, but the correct way to handle that is via the content-disposition header.