Received: from heidi.akld.capit.co.nz (heidi.capit.co.nz [210.55.25.43]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1D2O7E39059 for ; Tue, 12 Feb 2002 21:24:07 -0500 (EST) (envelope-from andrew@catalyst.net.nz) Received: from heidegger.catalyst.net.nz (dhcp36.akld.capit.co.nz [192.168.5.55]) by heidi.akld.capit.co.nz (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id g1D2Nxo01587; Wed, 13 Feb 2002 15:23:59 +1300 X-Authentication-Warning: heidi.akld.capit.co.nz: Host dhcp36.akld.capit.co.nz [192.168.5.55] claimed to be heidegger.catalyst.net.nz Received: from 127.0.0.1 (ident=unknown) by heidegger.catalyst.net.nz with esmtp (MasqMail 0.1.16) id 16ap5C-5cK-00; Wed, 13 Feb 2002 15:23:42 +1300 Subject: Re: Viewing Word Documents using PHP From: Andrew McMillan To: Kris-Jon Fenton Cc: pgsql-php@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 13 Feb 2002 15:23:41 +1300 Message-Id: <1013567022.8823.90.camel@kant.mcmillan.net.nz> Mime-Version: 1.0 X-Archive-Number: 200202/36 X-Sequence-Number: 942 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?