Connecting Tech Pros Worldwide Forums | Help | Site Map

Parse Doc file using php

Newbie
 
Join Date: Apr 2007
Posts: 1
#1: Apr 28 '07
I need to read resumes from DOC, RTF and text file and fill in
the relevant fields in database.
My application is based on PHP
can anyone help me?

Familiar Sight
 
Join Date: Feb 2007
Posts: 135
#2: Apr 28 '07

re: Parse Doc file using php


Hi,

U can read the file content using the file_get_contents() function. But if the file is DOC or RTF format I think extracting the necessary or relevant information from the file will be not be a easier task. u need to use collection of words of relevant words and also need to use pattern searching.

Do do this u need to be master in file handling using php and regular expression expert.

Quote:

Originally Posted by swatiadawade

I need to read resumes from DOC, RTF and text file and fill in the relevant fields in database. My application is based on PHP
can anyone help me?

susen
mwasif's Avatar
Moderator
 
Join Date: Jul 2006
Location: Pakistan
Posts: 719
#3: Apr 28 '07

re: Parse Doc file using php


You can read the Doc file using COM.
Familiar Sight
 
Join Date: Feb 2007
Posts: 135
#4: Apr 28 '07

re: Parse Doc file using php


Hi,

its true that u can use COM for reading the files. But there r 2 requirements u need to fulfill to do this.
  1. Server has be Windows server.
  2. COM support has to be installed for php.
If the 2 above said condition fulfilled then u can go for using COM, but in most cases u will get LAMP rather than WAMP.

Quote:

Originally Posted by mwasif

You can read the Doc file using COM.

susen
Reply