Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Keyword capture from word documents
Old 11-29-2007, 11:56 PM Keyword capture from word documents
Skilled Talker

Posts: 70
Trades: 0
Hi all,

I've run into a small problem regarding capture of keywords from word documents, getting the sum of the total matches and posting those results to a database. I'm using Antiword to convert the word documents to text files for easy processing. Here's what I've got so far for this part of the function:

PHP Code:
$keywords importKeywords();
$txtTempfile $tempfile ".txt";
system($antiword " " $tempfile " > " $txtTempfile);
$resumeFile file($txtTempFile);
for(
$i 0$i count($keywords); $i++) {
   for(
$j 0$i count($resumeFile); $i++) {
      if(
eregi($keywords[$i],$resumeFile[$j])) {
         
// HERE'S THE CRITICAL AREA OF WHICH I NEED HELP!!
         
$matches[$keywords[$i]]++;
      }
   }

I need a better method of storing the relevant matches and their respective occurances of those matches (e.g. say the keyword "Sous Chef" was found 24 times in a document) I need a way of adding those occurances and storing that in an associative array, so I can iterate through and post the entries to my backend database.

Am I on the right track? If not, what am I missing?

Many thanks in advance.
cerebro89 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Keyword capture from word documents
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27662 seconds with 12 queries