Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 05-07-2009, 04:06 AM   #1
Registered: Apr 2009
Posts: 48

Rep: Reputation: 15
reading ms word file using openOffice on fedora

Hai all,

this is srinath.m

i am using fedora, php, mysql

my task is reading msword file content and insert into mysql table field.

friends on linuxquestions suggested to use openOffice for this. thanks to them.

first i downloaded a word document from my yahoo mail attachment and opened it using writer

when i open, in the document i see some extra content also came with file content. that is

X-Apparently-To: via; Sun, 30 Mar 2008 22:50:59 -0700 X-Originating-IP: [] Authentication-Results:; domainkeys=neutral (no sig) Received: from (EHLO ( by with SMTP; Sun, 30 Mar 2008 22:50:56 -0700 Received: from (localhost.localdomain []) by (8.13.1/8.13.1) with ESMTP id m2V5ogkE026799; Mon, 31 Mar 2008 11:20:42 +0530 Received: (from nobody@localhost) by (8.13.1/8.13.1/Submit) id m2V5og8A026797; Mon, 31 Mar 2008 11:20:42 +0530 Date: Mon, 31 Mar 2008 11:20:42 +0530 MIME-Version: 1.0 To: From: Subject: Urgent Opening-Software Engineer - PHP reg Content-type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 3436

why this came and how to prevent this.

and ok i delete this content and save my file. how to read content from this file and dump to mysql

i think file_get_contants function is ok for this, if not and else other standard process is there then please tell me how to do

Old 05-07-2009, 08:20 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Reported for closure---duplicate

Go here:

Last edited by pixellany; 05-07-2009 at 08:22 AM.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reading ms word file on fedora sriphp Linux - Newbie 12 05-11-2009 08:17 AM
reading ms word on linux sriphp Linux - Software 2 05-07-2009 04:02 PM
Reading and printing the 5th, 10th, 15th...word of any file dahr Linux - Newbie 2 07-28-2008 03:51 PM
[SOLVED] find a word in a file, and change a word beneath it ?? vikas027 Programming 10 02-14-2008 09:46 PM
problem in reading Microsoft word as a binary file ljqu_happy Programming 15 02-02-2005 10:10 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration