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 openOffice.org writer
when i open, in the document i see some extra content also came with file content. that is
X-Apparently-To:
v.vasudevrao@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
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
Thanks
Srinath.M