LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hai,

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: v.abc@yahoo.com via 209.191.125.72; Sun, 30 Mar 2008 22:50:59 -0700
X-Originating-IP: [198.104.137.206]
Authentication-Results: mta541.mail.mud.yahoo.com from=careerzeal.in; domainkeys=neutral (no sig)
Received: from 198.104.137.206 (EHLO linuxcp10273.dn.net) (198.104.137.206)
by mta541.mail.mud.yahoo.com with SMTP; Sun, 30 Mar 2008 22:50:56 -0700
Received: from linuxcp10273.dn.net (localhost.localdomain [127.0.0.1])
by linuxcp10273.dn.net (8.13.1/8.13.1) with ESMTP id m2V5ogkE026799;
Mon, 31 Mar 2008 11:20:42 +0530
Received: (from nobody@localhost)
by linuxcp10273.dn.net (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: ramiya@careerzeal.in
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

Thanks
Sri
 
Old 05-10-2009, 08:35 PM   #2
w3bd3vil
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
Tinkster
Moderator
 
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
http://www.google.com/search?source=...=Google+Search


The top three hits look very promising


Cheers,
Tink
 
  


Reply


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
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration