RE: How to fetch .DOC or .DOCX file in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Jagdeep Singh [mailto:jagsaini1982@xxxxxxxxx]
> Sent: Thursday, December 04, 2008 8:39 AM
> To: php-general@xxxxxxxxxxxxx
> Subject:  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux