From: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
---|---|
To: | "Kris-Jon Fenton" <kfenton(at)pcpro(dot)net(dot)au>, <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Viewing Word Documents using PHP |
Date: | 2002-02-13 02:01:22 |
Message-ID: | GNELIHDDFBOCMGBFGEFOGEFOCBAA.chriskl@familyhealth.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
This is not the appropriate list for this question - you should ask the PHP
general list on http://www.php.net/
However, all you have to do is make sure you set the content type properly:
header('Content-Type: application/msword');
readfile('file.doc');
Chris
ps. If application/msword doesn't work, try application/octet-stream.
pps. For a full list of mime types, the mime.types file in your apache
configuration.
> -----Original Message-----
> From: pgsql-php-owner(at)postgresql(dot)org
> [mailto:pgsql-php-owner(at)postgresql(dot)org]On Behalf Of Kris-Jon Fenton
> Sent: Wednesday, 13 February 2002 9:50 AM
> To: pgsql-php(at)postgresql(dot)org
> Subject: [PHP] Viewing Word Documents using PHP
>
>
> Hi,
>
> I am trying to view Word Docs on our intranet.
>
> All I can get is a load of code.
>
> Someone suggested that I use wvHtml - www.wvware.com - to convert
> the files
> but I am not sure how to tell PHP to use it??
>
> I have used readfile but still junk!
>
> Thanks
> Kris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew McMillan | 2002-02-13 02:23:41 | Re: Viewing Word Documents using PHP |
Previous Message | Dan Harrington | 2002-02-13 01:57:29 | Re: Viewing Word Documents using PHP |