RE: [PHP] How to fetch .DOC or .DOCX file in php
| From: | Boyd, Todd M. | Date: | Thu, 04 Dec 2008 14:46:35 +0000 |
| Subject: | RE: [PHP] How to fetch .DOC or .DOCX file in php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284095@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Jagdeep Singh [mailto:jagsaini1982@gmail.com]
> Sent: Thursday, December 04, 2008 8:39 AM
> To: php-general@lists.php.net
> Subject: [PHP] How to fetch .DOC or .DOCX file in php
> Importance: Low
>
> Hi !
>
> I want to fetch text from .doc / .docx file and save it into database
> file.
> But when I tried to fetch text with fopen/fgets etc ... It gave me
> special
> characters with text.
>
> (With .txt files everything is fine)
> Only problem is with doc/docx files.
> I dont know whow to remove "SPECIAL CHARACTERS" from this text ...
A.) This has been handled on this list several times. Please search the
archives before posting a question.
B.) Did you even TRY to Google for this? In the first 5 matches for "php
open ms word" I found this:
http://www.developertutorials.com/blog/php/extracting-text-from-word-doc
uments-via-php-and-com-81/
You will need an MS Windows machine for this solution to work. If you're
using *nix... well... good luck.
// Todd