> >> Gangadhara Prasad wrote:
> >> >
> >> > How to import word doc file into mysql table using php coding?
> >> >
> >> > Can you please me anyone.
> >> >
> >> > Thanks,
> >> > Gangadhar
> >
> > And when uses Linux ?


In two messages you have provided no details of the specifics of your
application.  Are you merely trying to store MS Word .doc files for later
download in the same format?  If so, store the files in the filesystem and data
about them in your database table.

If you are trying to manipulate the data in the Word files, things become
considerably more complex.  PHP is an open source server-side programming
language.  It is not a desktop application (usually).  In the open source
world, there are efforts to read and write Word .doc files such as
OpenOffice.org which works in a graphic user interface (GUI) environment such
as a Linux desktop.  It can read and write Word .doc files.  However, each new
version of MS Office requires efforts on the OOo team to figure out a way to
read the new file format.  Integrating OOo with PHP might be possible if there
are some command line hooks to OOo but I am unaware of them.

Another approach might be to look for command line tools which can convert .doc
to either .txt or .rtf data.  The .txt is the best bet since plain text data
(without any of the formatting such as fonts, italics, bold, etc) is more
easily stored in a database field and manipulated.  However, you won't easily
go back to a .doc format from this.  

The .rtf (rich text format) retains the basic formatting information but is not
going to be easy to edit.  Sometimes the "tags" are encoded in plain text but
often it is in a binary format.

In both cases you will probably want to Google the word Linux plus something
like doc2txt or doc2rtf.

What you are looking for (I'm guessing because you really haven't provided any
details) is not commonly done because M$ does everything they can to make sure
that you use their paid products to do anything with the files in these
formats.  There are some workarounds but not all of them are going to be
suitable for PHP web applications.

James

Reply via email to