Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-10-2009, 02:57 AM   #1
Registered: Apr 2009
Posts: 48

Rep: Reputation: 15
extract text only from ms word in php


i installed sucessfully [root@localhost Desktop]# yum install catdoc antiword.

when i run

[root@localhost Desktop]# catdoc q.doc

i am getting contant along with header info like

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
Subject: Urgent Opening-Software Engineer - PHP reg
Content-type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 3436

<div><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1" face="verdana" size="2"><strong>Dear Candidate,</strong></font></font></font></font></font></font></font></font></font></ .....

but i want only text part not header info and i want to insert it into mysql table field. i want to do all this process in php. is it possible

Old 05-10-2009, 08:35 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
It sure can be done, but you would need to put some efforts in learning php.
Old 05-11-2009, 01:07 AM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

The top three hits look very promising



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
How to extract Data from word document? nesta Programming 3 11-26-2008 11:35 AM
Extract text from messages log brianmcgee Programming 1 09-17-2008 08:35 AM
How to extract particular text in a text file maverick_cat Linux - Newbie 3 07-22-2008 02:44 AM
scripting question: Extract a particular word from /proc/cmdline kushalkoolwal Programming 3 05-14-2008 02:48 AM
Extract certain text info from text file xmrkite Linux - Software 30 02-26-2008 11:06 AM

All times are GMT -5. The time now is 02:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration