pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedViewing Word Documents using PHP
5+ messages / 5 participants
[nested] [flat]
* Viewing Word Documents using PHP
@ 2002-02-13 01:49 Kris-Jon Fenton <kfenton@pcpro.net.au>
0 siblings, 3 replies; 5+ messages in thread
From: Kris-Jon Fenton @ 2002-02-13 01:49 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Viewing Word Documents using PHP
@ 2002-02-13 01:57 Dan Harrington <dan@tudan.net>
parent: Kris-Jon Fenton <kfenton@pcpro.net.au>
2 siblings, 1 reply; 5+ messages in thread
From: Dan Harrington @ 2002-02-13 01:57 UTC (permalink / raw)
To: Kris-Jon Fenton <kfenton@pcpro.net.au>; pgsql-php
Internet Explorer views Word files natively...not sure if that matters to you, but
it works just fine.
> -----Original Message-----
> From: pgsql-php-owner@postgresql.org
> [mailto:pgsql-php-owner@postgresql.org]On Behalf Of Kris-Jon Fenton
> Sent: Tuesday, February 12, 2002 6:50 PM
> To: pgsql-php@postgresql.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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Viewing Word Documents using PHP
@ 2002-02-13 02:01 Christopher Kings-Lynne <chriskl@familyhealth.com.au>
parent: Kris-Jon Fenton <kfenton@pcpro.net.au>
2 siblings, 0 replies; 5+ messages in thread
From: Christopher Kings-Lynne @ 2002-02-13 02:01 UTC (permalink / raw)
To: Kris-Jon Fenton <kfenton@pcpro.net.au>; 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@postgresql.org
> [mailto:pgsql-php-owner@postgresql.org]On Behalf Of Kris-Jon Fenton
> Sent: Wednesday, 13 February 2002 9:50 AM
> To: pgsql-php@postgresql.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
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Viewing Word Documents using PHP
@ 2002-02-13 02:23 Andrew McMillan <andrew@catalyst.net.nz>
parent: Kris-Jon Fenton <kfenton@pcpro.net.au>
2 siblings, 0 replies; 5+ messages in thread
From: Andrew McMillan @ 2002-02-13 02:23 UTC (permalink / raw)
To: Kris-Jon Fenton <kfenton@pcpro.net.au>; +Cc: pgsql-php
On Wed, 2002-02-13 at 14:49, Kris-Jon Fenton wrote:
>
> 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!
Now if it was viewing a "PostgreSQL" document, it would be on topic, but
I can't see any that are written in Word.
You need to popen() the wvHtml application and then do your processing
on the stream that comes back.
At least that is one answer. There are others.
Regards,
Andrew.
--
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
Are you enrolled at http://schoolreunions.co.nz/ yet?
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Viewing Word Documents using PHP
@ 2002-02-13 11:42 Devrim GUNDUZ <devrim@oper.metu.edu.tr>
parent: Dan Harrington <dan@tudan.net>
0 siblings, 0 replies; 5+ messages in thread
From: Devrim GUNDUZ @ 2002-02-13 11:42 UTC (permalink / raw)
To: Dan Harrington <dan@tudan.net>; +Cc: Kris-Jon Fenton <kfenton@pcpro.net.au>; pgsql-php
Hi,
On Tue, 12 Feb 2002, Dan Harrington wrote:
> Internet Explorer views Word files natively...not sure if that matters to you, but
> it works just fine.
I know it is offtopic, but this is a plugin of office 2000. IE shows word
documents if this plugin is installed.
Regards,
Devrim
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2002-02-13 11:42 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-13 01:49 Viewing Word Documents using PHP Kris-Jon Fenton <kfenton@pcpro.net.au>
2002-02-13 01:57 ` Dan Harrington <dan@tudan.net>
2002-02-13 11:42 ` Devrim GUNDUZ <devrim@oper.metu.edu.tr>
2002-02-13 02:01 ` Christopher Kings-Lynne <chriskl@familyhealth.com.au>
2002-02-13 02:23 ` Andrew McMillan <andrew@catalyst.net.nz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox